GET
/
api
/
engine
/
models
curl --request GET \
  --url http://localhost:8000/api/engine/models \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "<string>"
}'
{
  "anthropic": {
    "name": "Anthropic",
    "models": [
      "claude-3-opus-20240229",
      "claude-3-sonnet-2024022",
      "claude-2.1",
      "claude-2",
      "claude-instant-1.2"
    ]
  },
  "ollama": {
    "name": "Ollama",
    "models": ["llama2"]
  },
  "openai": {
    "name": "OpenAI",
    "models": [
      "gpt-4-1106-preview",
      "gpt-4",
      "gpt-4-0314",
      "gpt-4-0613",
      "gpt-3.5-turbo",
      "gpt-3.5-turbo-0301",
      "gpt-3.5-turbo-0613",
      "gpt-3.5-turbo-1106",
      "gpt-3.5-turbo-16k",
      "gpt-3.5-turbo-16k-0613"
    ]
  },
  "azure": {
    "name": "Azure",
    "models": ["gpt-4-1106-preview", "gpt-3.5-turbo-16k", "gpt-3.5-turbo"]
  }
}
provider
string

Provider id used to filter models

{
  "anthropic": {
    "name": "Anthropic",
    "models": [
      "claude-3-opus-20240229",
      "claude-3-sonnet-2024022",
      "claude-2.1",
      "claude-2",
      "claude-instant-1.2"
    ]
  },
  "ollama": {
    "name": "Ollama",
    "models": ["llama2"]
  },
  "openai": {
    "name": "OpenAI",
    "models": [
      "gpt-4-1106-preview",
      "gpt-4",
      "gpt-4-0314",
      "gpt-4-0613",
      "gpt-3.5-turbo",
      "gpt-3.5-turbo-0301",
      "gpt-3.5-turbo-0613",
      "gpt-3.5-turbo-1106",
      "gpt-3.5-turbo-16k",
      "gpt-3.5-turbo-16k-0613"
    ]
  },
  "azure": {
    "name": "Azure",
    "models": ["gpt-4-1106-preview", "gpt-3.5-turbo-16k", "gpt-3.5-turbo"]
  }
}