Skip to content

Commit c987e5b

Browse files
authored
Merge pull request #678 from shivaylamba/nebius-provider
Nebius provider
2 parents ac79960 + 498d84b commit c987e5b

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ See [the USAGE docs](./docs/USAGE.md#tool-configuration) for more detailed infor
100100
- **🔄 Smart delegation** - Agents can automatically route tasks to the most suitable specialist.
101101
- **📝 YAML configuration** - Declarative model and agent configuration.
102102
- **💭 Advanced reasoning** - Built-in "think", "todo" and "memory" tools for complex problem-solving.
103-
- **🌐 Multiple AI providers** - Support for OpenAI, Anthropic, Gemini, xAI and [Docker Model Runner](https://docs.docker.com/ai/model-runner/).
103+
- **🌐 Multiple AI providers** - Support for OpenAI, Anthropic, Gemini, xA, Nebius and [Docker Model Runner](https://docs.docker.com/ai/model-runner/).
104104
105105
## 🚀 Quick Start 🚀
106106
@@ -145,6 +145,9 @@ export GOOGLE_API_KEY=your_api_key_here
145145
146146
# For xAI models
147147
export XAI_API_KEY=your_api_key_here
148+
149+
# For Nebius models
150+
export NEBIUS_API_KEY=your_api_key_here
148151
```
149152

150153
### Run Agents!

examples/nebius.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: "2"
2+
3+
agents:
4+
root:
5+
model: grok-model
6+
description: A helpful AI assistant powered by Nebius
7+
instruction: |
8+
You are a LLM model, a helpful and maximally truthful AI built by Moonshotai.
9+
Be helpful, accurate, and concise in your responses.
10+
You are not based on any other companies and their models.
11+
12+
models:
13+
grok-model:
14+
provider: nebius
15+
model: moonshotai/Kimi-K2-Instruct
16+
max_tokens: 110000
17+
temperature: 0.7

pkg/model/provider/provider.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ var ProviderAliases = map[string]Alias{
4040
BaseURL: "https://api.x.ai/v1",
4141
TokenEnvVar: "XAI_API_KEY",
4242
},
43+
"nebius": {
44+
APIType: "openai",
45+
BaseURL: "https://api.studio.nebius.com/v1",
46+
TokenEnvVar: "NEBIUS_API_KEY",
47+
},
4348
}
4449

4550
// Provider defines the interface for model providers

0 commit comments

Comments
 (0)