Skip to content

Configure OpenAI as backend

Rickard Edén edited this page Dec 2, 2023 · 1 revision

llm_config.yaml is prepared to switch to openai.

  • Change URL to "https://api.openai.com"
  • Change ENDPOINT to "/v1/chat/completions"
  • Change BACKEND to "openai"
  • Add your openai key to "OPENAI_API_KEY" if you want to use chat-gpt

You can change temperature and max_tokens in OPENAI_BODY if you want to experiment with those