From 37157ee35fcc543ebf567fb04a326df6795950e9 Mon Sep 17 00:00:00 2001 From: fpagny Date: Fri, 13 Feb 2026 17:37:58 +0100 Subject: [PATCH] feat(scaleway): add scaleway provider (#21121) * feat(scaleway): add scaleway provider * Fix link format Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * remove unused tabs and tabitem Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * fix: add scaleway to sidebar menu --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- docs/my-website/docs/providers/scaleway.md | 62 ++++++++++++++++++++++ docs/my-website/sidebars.js | 1 + litellm/llms/openai_like/providers.json | 4 ++ 3 files changed, 67 insertions(+) create mode 100644 docs/my-website/docs/providers/scaleway.md diff --git a/docs/my-website/docs/providers/scaleway.md b/docs/my-website/docs/providers/scaleway.md new file mode 100644 index 00000000000..ea57c24db30 --- /dev/null +++ b/docs/my-website/docs/providers/scaleway.md @@ -0,0 +1,62 @@ + +# Scaleway +LiteLLM supports all [models available on Scaleway Generative APIs ↗](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/). + +## Usage with LiteLLM Python SDK + +```python +import os +from litellm import completion + +os.environ["SCW_SECRET_KEY"] = "your-scaleway-secret-key" + +messages = [{"role": "user", "content": "Write a short poem"}] +response = completion(model="scaleway/qwen3-235b-a22b-instruct-2507", messages=messages) +print(response) +``` + +## Usage with LiteLLM Proxy + +### 1. Set Scaleway models in config.yaml + +```yaml +model_list: + - model_name: scaleway-model + litellm_params: + model: scaleway/qwen3-235b-a22b-instruct-2507 + api_key: "os.environ/SCW_SECRET_KEY" # ensure you have `SCW_SECRET_KEY` in your .env +``` + +### 2. Start proxy + +```bash +litellm --config config.yaml +``` + +### 3. Query proxy + +Assuming the proxy is running on [http://localhost:4000](http://localhost:4000): +```bash +curl http://localhost:4000/chat/completions \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer YOUR_LITELLM_MASTER_KEY" \ + -d '{ + "model": "scaleway-model", + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant." + }, + { + "role": "user", + "content": "Write a short poem" + } + ] + }' +``` +`-H "Authorization: Bearer YOUR_LITELLM_MASTER_KEY" ` is only required if you have set a LiteLLM master key + + +## Supported features + +Scaleway provider supports all features in [Generative APIs reference documentation ↗](https://www.scaleway.com/en/developers/api/generative-apis/), such as streaming, structured outputs and tool calling. diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.js index 579b5699101..7cb6f624c34 100644 --- a/docs/my-website/sidebars.js +++ b/docs/my-website/sidebars.js @@ -873,6 +873,7 @@ const sidebars = { }, "providers/sambanova", "providers/sap", + "providers/scaleway", "providers/stability", "providers/synthetic", "providers/snowflake", diff --git a/litellm/llms/openai_like/providers.json b/litellm/llms/openai_like/providers.json index b4f9cbe42de..1b1b1c2f8cc 100644 --- a/litellm/llms/openai_like/providers.json +++ b/litellm/llms/openai_like/providers.json @@ -26,6 +26,10 @@ "max_completion_tokens": "max_tokens" } }, + "scaleway": { + "base_url": "https://api.scaleway.ai/v1", + "api_key_env": "SCW_SECRET_KEY" + }, "synthetic": { "base_url": "https://api.synthetic.new/openai/v1", "api_key_env": "SYNTHETIC_API_KEY",