Refer to Model Configs for how to set the environment variables for your particular deployment.

The default Danswer model is GPT-3.5-Turbo so if you wish to use this, there’s no need to change anything.

Set Danswer to use GPT-4

  • GEN_AI_MODEL_VERSION=gpt-4
  • GEN_AI_API_KEY=<your-gpt4-compatible-key>
    • You can also leave this unset and set it later via the UI

Set Danswer to use Text-Davinci-003

  • GEN_AI_MODEL_VERSION=text-davinci-003
  • GEN_AI_API_KEY=<your-openai-key>
    • You can also leave this unset and set it later via the UI