Skip to main content

OpenAI

Configuration​

When running Faheem Code, you'll need to set the following in the Faheem Code UI through the Settings under the LLM tab:

Using OpenAI-compatible endpoints​

Just as for OpenAI Chat completions, we use LiteLLM for OpenAI-compatible endpoints. You can find their full documentation on this topic here.

Using an OpenAI proxy​

If you're using an OpenAI proxy, in the Faheem Code UI through the Settings under the LLM tab:

  1. Enable Advanced options
  2. Set the following:
    • Custom Model to openai/<model-name> (e.g. openai/gpt-4o or openai/<proxy-prefix>/<model-name>)
    • Base URL to the URL of your OpenAI proxy
    • API Key to your OpenAI API key