# Supported model providers for Agent Zero
# ---------------------------------------
#
# Each provider type ("chat", "embedding") contains a mapping of provider IDs
# to their configurations.
#
# The provider ID (e.g., "anthropic") is used:
#  - in the settings UI dropdowns.
#  - to construct the environment variable for the API key (e.g., ANTHROPIC_API_KEY).
#
# Each provider configuration requires:
#   name:             Human-readable name for the UI.
#   litellm_provider: The corresponding provider name in LiteLLM.
#
# Optional fields:
#   kwargs:           A dictionary of extra parameters to pass to LiteLLM.
#                     This is useful for `api_base`, `extra_headers`, etc.
#
# Optional model listing fields (used by the Model Configuration plugin):
#   models_list:
#     endpoint_url:   URL or path for the model listing API.
#                     Absolute URL (https://...) is used directly.
#                     Relative path (/path) is appended to api_base or default_base.
#     format:         Response parsing format: "openai" (default), "google", "ollama".
#     params:         Extra query parameters for the listing request.
#     default_base:   Default base URL for local/self-hosted providers.

chat:
  a0_venice:
    name: Agent Zero API
    litellm_provider: openai
    models_list:
      endpoint_url: "https://api.venice.ai/api/v1/models"
    kwargs:
      api_base: https://llm.agent-zero.ai/v1
      venice_parameters:
        include_venice_system_prompt: false
  anthropic:
    name: Anthropic
    litellm_provider: anthropic
    models_list:
      endpoint_url: "https://api.anthropic.com/v1/models"
      params:
        limit: "1000"
  cometapi:
    name: CometAPI
    litellm_provider: cometapi
    models_list:
      endpoint_url: "https://api.cometapi.com/v1/models"
  deepseek:
    name: DeepSeek
    litellm_provider: deepseek
    models_list:
      endpoint_url: "https://api.deepseek.com/models"
  github_copilot:
    name: GitHub Copilot
    litellm_provider: github_copilot
    kwargs:
      extra_headers:
        "Editor-Version": "vscode/1.85.1"
        "Copilot-Integration-Id": "vscode-chat"
        "Copilot-Vision-Request": "true"
  google:
    name: Google
    litellm_provider: gemini
    models_list:
      endpoint_url: "/v1beta/models"
      format: "google"
      params:
        pageSize: "1000"
      default_base: "https://generativelanguage.googleapis.com"
  groq:
    name: Groq
    litellm_provider: groq
    models_list:
      endpoint_url: "https://api.groq.com/openai/v1/models"
  huggingface:
    name: HuggingFace
    litellm_provider: huggingface
  lm_studio:
    name: LM Studio
    litellm_provider: lm_studio
    models_list:
      endpoint_url: "/v1/models"
      default_base: "http://host.docker.internal:1234"
  mistral:
    name: Mistral AI
    litellm_provider: mistral
    models_list:
      endpoint_url: "https://api.mistral.ai/v1/models"
  moonshot:
    name: Moonshot AI
    litellm_provider: moonshot
    models_list:
      endpoint_url: "https://api.moonshot.cn/v1/models"
  nebius:
    name: Nebius Token Factory
    litellm_provider: openai
    models_list:
      endpoint_url: "/models"
    kwargs:
      api_base: https://api.tokenfactory.nebius.com/v1
  ollama:
    name: Ollama
    litellm_provider: ollama
    models_list:
      endpoint_url: "/api/tags"
      format: "ollama"
      default_base: "http://host.docker.internal:11434"
  ollama_cloud:
    name: Ollama Cloud
    litellm_provider: openai
    models_list:
      endpoint_url: "/models"
    kwargs:
      api_base: https://ollama.com/v1
  openai:
    name: OpenAI
    litellm_provider: openai
    models_list:
      endpoint_url: "https://api.openai.com/v1/models"
  azure:
    name: OpenAI Azure
    litellm_provider: azure
    models_list:
      endpoint_url: "/openai/models"
      params:
        api-version: "2024-10-21"
  bedrock:
    name: AWS Bedrock
    litellm_provider: bedrock
  openrouter:
    name: OpenRouter
    litellm_provider: openrouter
    models_list:
      endpoint_url: "https://openrouter.ai/api/v1/models"
    kwargs:
      extra_headers:
        "HTTP-Referer": "https://agent-zero.ai/"
        "X-Title": "Agent Zero"
        "X-OpenRouter-Categories": "personal-agent,cloud-agent"
  sambanova:
    name: Sambanova
    litellm_provider: sambanova
    models_list:
      endpoint_url: "https://api.sambanova.ai/v1/models"
  venice:
    name: Venice.ai
    litellm_provider: openai
    models_list:
      endpoint_url: "https://api.venice.ai/api/v1/models"
    kwargs:
      api_base: https://api.venice.ai/api/v1
      venice_parameters:
        include_venice_system_prompt: false
  xai:
    name: xAI
    litellm_provider: xai
    models_list:
      endpoint_url: "https://api.x.ai/v1/models"
  zai:
    name: Z.AI
    litellm_provider: openai
    models_list:
      endpoint_url: "/models"
    kwargs:
      api_base: https://api.z.ai/api/paas/v4
  zai_coding:
    name: Z.AI Coding
    litellm_provider: openai
    models_list:
      endpoint_url: "/models"
    kwargs:
      api_base: https://api.z.ai/api/coding/paas/v4
  other:
    name: Other OpenAI compatible
    litellm_provider: openai

embedding:
  huggingface:
    name: HuggingFace
    litellm_provider: huggingface
  google:
    name: Google
    litellm_provider: gemini
  lm_studio:
    name: LM Studio
    litellm_provider: lm_studio
  mistral:
    name: Mistral AI
    litellm_provider: mistral
  ollama:
    name: Ollama
    litellm_provider: ollama
  openai:
    name: OpenAI
    litellm_provider: openai
  azure:
    name: OpenAI Azure
    litellm_provider: azure
  bedrock:
    name: AWS Bedrock
    litellm_provider: bedrock
  # TODO: OpenRouter not yet supported by LiteLLM, replace with native litellm_provider openrouter and remove api_base when ready
  openrouter:
    name: OpenRouter
    litellm_provider: openai
    kwargs:
      api_base: https://openrouter.ai/api/v1
      extra_headers:
        "HTTP-Referer": "https://agent-zero.ai/"
        "X-Title": "Agent Zero"
        "X-OpenRouter-Categories": "personal-agent,cloud-agent"
  a0_venice:
    name: Agent Zero API
    litellm_provider: openai
    models_list:
      endpoint_url: "https://api.venice.ai/api/v1/models"
    kwargs:
      api_base: https://llm.agent-zero.ai/v1
  venice:
    name: Venice.ai
    litellm_provider: openai
    models_list:
      endpoint_url: "https://api.venice.ai/api/v1/models"
    kwargs:
      api_base: https://api.venice.ai/api/v1
  other:
    name: Other OpenAI compatible
    litellm_provider: openai
