Movatterモバイル変換


[0]ホーム

URL:


Azure OpenAI API Service

Azure OpenAI Service

To configure gptstudio to work using Azure OpenAI service, you needto provide some configuration details in your .Renviron file.Specifically, gptstudio looks for five environment variables:

Here’s how you can add these details to your .Renviron file:

  1. Locate your .Renviron file withusethis::edit_r_environ().
  2. Add environment variable details: Add a new line for each variableyou need to set in the following format: VARIABLE_NAME=“YOUR_VALUE”.Replace VARIABLE_NAME with the name of the environment variable andYOUR_VALUE with the actual value that you want to set. For example, toset the API key you would have a line like this:
AZURE_OPENAI_KEY="your_actual_key_goes_here"

You need to do this for each of the environment variables expected bythe function. Your .Renviron file should look something like this:

AZURE_OPENAI_TASK="your_task_code"AZURE_OPENAI_ENDPOINT="your_endpoint_url"AZURE_OPENAI_DEPLOYMENT_NAME="your_deployment_name"AZURE_OPENAI_KEY="your_api_key"AZURE_OPENAI_API_VERSION="your_api_version"AZURE_OPENAI_USE_TOKEN=FALSE
  1. Save and Close .Renviron: After adding your environment variables,save your .Renviron file and close it. You will need to restart your Rsession to make sure the new environment variables are loadedproperly.

Remember to replace your_task_code, your_endpoint_url,your_deployment_name, your_api_key, and your_api_version with youractual Azure OpenAI details. You can retrieve these details from yourAzure OpenAI service account. For more information about Azure OpenAIconfiguration, refer to theMicrosoftquickstart guide.


[8]ページ先頭

©2009-2025 Movatter.jp