Current section

Files

Jump to
llm_db lib llm_db generated valid_providers.ex
Raw

lib/llm_db/generated/valid_providers.ex

defmodule LLMDB.Generated.ValidProviders do
@moduledoc """
Auto-generated module containing all valid provider atoms.
This module is generated by `mix llm_db.build` to prevent atom leaking.
By pre-generating all provider atoms at build time, we ensure that runtime
code can only use existing atoms via `String.to_existing_atom/1`.
DO NOT EDIT THIS FILE MANUALLY - it will be overwritten.
"""
@providers [
:"302ai",
:abacus,
:aihubmix,
:alibaba,
:alibaba_cn,
:amazon_bedrock,
:anthropic,
:azure,
:azure_cognitive_services,
:bailing,
:baseten,
:cerebras,
:chutes,
:cloudflare_ai_gateway,
:cloudflare_workers_ai,
:cohere,
:cortecs,
:deepinfra,
:deepseek,
:fastrouter,
:fireworks_ai,
:firmware,
:friendli,
:github_copilot,
:github_models,
:gitlab,
:google,
:google_vertex,
:google_vertex_anthropic,
:groq,
:helicone,
:huggingface,
:iflowcn,
:inception,
:inference,
:io_net,
:kimi_for_coding,
:llama,
:lmstudio,
:lucidquery,
:minimax,
:minimax_cn,
:minimax_cn_coding_plan,
:minimax_coding_plan,
:mistral,
:moark,
:modelscope,
:moonshotai,
:moonshotai_cn,
:morph,
:nano_gpt,
:nebius,
:nova,
:novita_ai,
:nvidia,
:ollama_cloud,
:openai,
:opencode,
:openrouter,
:ovhcloud,
:perplexity,
:poe,
:privatemode_ai,
:requesty,
:sap_ai_core,
:scaleway,
:siliconflow,
:siliconflow_cn,
:submodel,
:synthetic,
:togetherai,
:upstage,
:v0,
:venice,
:vercel,
:vivgrid,
:vultr,
:wandb,
:xai,
:xiaomi,
:zai,
:zai_coder,
:zai_coding_plan,
:zenmux,
:zhipuai,
:zhipuai_coding_plan
]
@doc """
Returns the list of all valid provider atoms.
"""
@spec list() :: [atom()]
def list, do: @providers
@doc """
Checks if the given atom is a valid provider.
"""
@spec member?(atom()) :: boolean()
def member?(atom), do: atom in @providers
end