From 8116a7b781107f3147d106309d6a55141aa8f20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=94=E7=A5=A5=E4=BF=8A?= Date: Wed, 25 Mar 2026 16:12:47 +0800 Subject: [PATCH] docs: add missing Palm and Maritalk provider pages Assisted-by: Codex GPT-5 --- docs/my-website/docs/providers/maritalk.md | 65 ++++++++++++++++++++++ docs/my-website/docs/providers/palm.md | 51 +++++++++++++++++ docs/my-website/sidebars.js | 2 + 3 files changed, 118 insertions(+) create mode 100644 docs/my-website/docs/providers/maritalk.md create mode 100644 docs/my-website/docs/providers/palm.md diff --git a/docs/my-website/docs/providers/maritalk.md b/docs/my-website/docs/providers/maritalk.md new file mode 100644 index 00000000000..430b8e41af9 --- /dev/null +++ b/docs/my-website/docs/providers/maritalk.md @@ -0,0 +1,65 @@ +# Maritalk + +| Property | Details | +|-------|-------| +| Description | Maritaca AI chat completions through LiteLLM's OpenAI-compatible provider path. | +| Provider Route on LiteLLM | `maritalk` | +| Default API Base | `https://chat.maritaca.ai/api` | +| Required API Key | `MARITALK_API_KEY` or `api_key=...` | +| Supported OpenAI Endpoints | `/chat/completions` | + +## API Key + +```python +import os + +os.environ["MARITALK_API_KEY"] = "your-api-key" +os.environ["MARITALK_API_BASE"] = "https://chat.maritaca.ai/api" # optional +``` + +## Sample Usage + +```python +import os + +from litellm import completion + +os.environ["MARITALK_API_KEY"] = "your-api-key" + +response = completion( + model="maritalk", + messages=[{"role": "user", "content": "Hello from LiteLLM"}], +) + +print(response) +``` + +## Streaming + +```python +from litellm import completion + +response = completion( + model="maritalk", + messages=[{"role": "user", "content": "Stream a short answer"}], + stream=True, +) + +for chunk in response: + print(chunk) +``` + +## Supported OpenAI Params + +- `frequency_penalty` +- `presence_penalty` +- `top_p` +- `top_k` +- `temperature` +- `max_tokens` +- `n` +- `stop` +- `stream` +- `stream_options` +- `tools` +- `tool_choice` diff --git a/docs/my-website/docs/providers/palm.md b/docs/my-website/docs/providers/palm.md new file mode 100644 index 00000000000..834558d20ff --- /dev/null +++ b/docs/my-website/docs/providers/palm.md @@ -0,0 +1,51 @@ +# Google PaLM + +:::warning PaLM was decommissioned +Google decommissioned PaLM in October 2024. + +LiteLLM keeps the `palm/` route only to surface a clear migration error. New requests should use the `gemini/` route instead. +::: + +| Property | Details | +|-------|-------| +| Status | Deprecated / decommissioned | +| Legacy Provider Route on LiteLLM | `palm/` | +| Recommended Replacement | [`gemini/`](./gemini.md) | +| Deprecation Announcement | [Google PaLM deprecation notice](https://ai.google.dev/palm_docs/palm?hl=en) | + +## What happens in LiteLLM + +If you call LiteLLM with a `palm/` model, LiteLLM raises an error that instructs you to migrate to `gemini/`. + +## Migration + +Replace: + +```python +from litellm import completion + +completion( + model="palm/chat-bison", + messages=[{"role": "user", "content": "Hello"}], +) +``` + +With: + +```python +import os +from litellm import completion + +os.environ["GEMINI_API_KEY"] = "your-api-key" + +completion( + model="gemini/gemini-2.0-flash", + messages=[{"role": "user", "content": "Hello"}], +) +``` + +:::tip Legacy API keys +When you migrate to `gemini/`, prefer `GEMINI_API_KEY`. + +LiteLLM still falls back to `PALM_API_KEY` for compatibility, but `GEMINI_API_KEY` is the current env var. +::: diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.js index 6446e227d99..679ec09b3a4 100644 --- a/docs/my-website/sidebars.js +++ b/docs/my-website/sidebars.js @@ -849,6 +849,7 @@ const sidebars = { label: "Google AI Studio", items: [ "providers/gemini", + "providers/palm", "providers/gemini/videos", "providers/google_ai_studio/files", "providers/google_ai_studio/image_gen", @@ -935,6 +936,7 @@ const sidebars = { "providers/llamafile", "providers/llamagate", "providers/lm_studio", + "providers/maritalk", "providers/manus", "providers/meta_llama", "providers/milvus_vector_stores",