From 176ed9a832172fa0d294ec6d6c121e56a7631dd0 Mon Sep 17 00:00:00 2001 From: misbahsy Date: Sun, 11 Oct 2026 07:54:17 -0700 Subject: [PATCH] feat: add LiteLLM provider --- providers/litellm/logo.svg | 9 +++++++++ providers/litellm/models/gpt-6-luna.toml | 8 ++++++++ providers/litellm/provider.toml | 12 ++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 providers/litellm/logo.svg create mode 100644 providers/litellm/models/gpt-6-luna.toml create mode 100644 providers/litellm/provider.toml diff --git a/providers/litellm/logo.svg b/providers/litellm/logo.svg new file mode 100644 index 00000000000..4da62e50ed3 --- /dev/null +++ b/providers/litellm/logo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/providers/litellm/models/gpt-6-luna.toml b/providers/litellm/models/gpt-6-luna.toml new file mode 100644 index 00000000000..0cd348c0f94 --- /dev/null +++ b/providers/litellm/models/gpt-6-luna.toml @@ -0,0 +1,8 @@ +# Example alias only. LiteLLM has no built-in models: each proxy maps its own aliases +# (model_list[].model_name) to a backend, so this ID works only if the proxy config defines it. +# Metadata comes from the GPT-6 Luna lab entry; cost is omitted because pricing depends on the backend. +# LiteLLM forwards reasoning_effort to the backend; values match the OpenAI entry. +# https://docs.litellm.ai/docs/proxy/configs +# https://docs.litellm.ai/docs/reasoning_content +base_model = "openai/gpt-6-luna" +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }] diff --git a/providers/litellm/provider.toml b/providers/litellm/provider.toml new file mode 100644 index 00000000000..1a5c085a2a5 --- /dev/null +++ b/providers/litellm/provider.toml @@ -0,0 +1,12 @@ +# LiteLLM Proxy is a self-hosted gateway that exposes an OpenAI-compatible API. +# Model IDs are aliases that the operator sets in the proxy config (model_list[].model_name). +# GET /v1/models returns the aliases that a given proxy serves. +# The API key is a LiteLLM virtual key or the master key; a proxy can also run without auth. +# https://docs.litellm.ai/docs/proxy/quick_start +# https://docs.litellm.ai/docs/proxy/virtual_keys +# https://docs.litellm.ai/docs/providers/litellm_proxy +name = "LiteLLM" +npm = "@ai-sdk/openai-compatible" +env = ["LITELLM_API_KEY"] +api = "http://localhost:4000/v1" +doc = "https://docs.litellm.ai/docs/proxy/quick_start"