Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DTPDEVEL and version 2024.2

...

Functionality has been tested on the embeddingmodel text-embedding-ada-002.

Configuring OpenAI Settings

To configure OpenAI settings, open the openai.json file located in <DTP_DATA_DIR>/conf directory.

...

AttributeValueDescription
enabledboolean

Enables or disables OpenAI settings. Set to true to enable.

Default is false.

providerstringSpecifies your OpenAI provider. Set to openAi or azureOpenAi.
openAiSettingsobjectRepresents connection settings when provider=openAi.
   apiKeystringSpecifies your OpenAI token.
   organizationIdstring(Optional) Specify the Organization ID you want to use when accessing the OpenAI client. If left blank, the default organization ID for your account is used.
azureOpenAiSettingsobjectRepresents connection and resource settings when provider=azureOpenAi.
   apiKeystringSpecifies your Azure OpenAI token.
   resourceNamestringSpecifies the Azure resource that contains your deployed Azure OpenAI model.
   embeddingsDeploymentNamestringSpecifies the deployment name of your Azure OpenAI Embedding model.

Example AI Settings

Using OpenAI as the Provider

...