Documentation Index
Fetch the complete documentation index at: https://docs.gourmand.dev/llms.txt
Use this file to discover all available pages before exploring further.
Discover OpenAI models here
Configuration
models:
- name: <MODEL_NAME>
provider: openai
model: <MODEL_ID>
apiKey: <YOUR_OPENAI_API_KEY>
{
"models": [
{
"title": "<MODEL_NAME>",
"provider": "openai",
"model": "<MODEL_ID>",
"apiKey": "<YOUR_OPENAI_API_KEY>"
}
]
}
Check out a more advanced configuration here
OpenAI API compatible providers
OpenAI API compatible providers include
If you are using an OpenAI API compatible providers, you can change the apiBase like this:
models:
- name: <OPENAI_API_COMPATIBLE_PROVIDER_MODEL>
provider: openai
model: <MODEL_NAME>
apiBase: http://localhost:8000/v1
apiKey: <YOUR_CUSTOM_API_KEY>
{
"models": [
{
"title": "<OPENAI_API_COMPATIBLE_PROVIDER_MODEL>",
"provider": "openai",
"model": "<MODEL_NAME>",
"apiKey": "<YOUR_CUSTOM_API_KEY>",
"apiBase": "http://localhost:8000/v1"
}
]
}
How to Force Legacy Completions Endpoint Usage
To force usage of completions instead of chat/completions endpoint you can set:
models:
- name: <OPENAI_API_COMPATIBLE_PROVIDER_MODEL>
provider: openai
model: <MODEL_NAME>>
apiBase: http://localhost:8000/v1
useLegacyCompletionsEndpoint: true
{
"models": [
{
"title": "<OPENAI_API_COMPATIBLE_PROVIDER_MODEL>",
"provider": "openai",
"model": "<MODEL_NAME>",
"apiBase": "http://localhost:8000/v1",
"useLegacyCompletionsEndpoint": true
}
]
}