Prerequisites
- Nebius API key. Sign up for free at AI Studio
Setup
If running on Google Colab
AddNEBIUS_API_KEY
to Google Secret Manager.
If running locally
Create an.env
file with NEBIUS_API_KEY:
Install Dependencies
If running locally:Load Configuration
Pick a Model
We will pick a model that supports function calling.- Go to models tab in studio.nebius.com
- Select text to text models
- Select function calling filter
- Copy the model name. For example
Qwen/Qwen3-30B-A3B
- Qwen3 family:
- Qwen/Qwen3-30B-A3B
- Qwen/Qwen3-235B-A22B
- Deepseek family:
- deepseek-ai/DeepSeek-R1-0528
- Llama:
- meta-llama/Llama-3.3-70B-Instruct
Define Function Call
Here we will use pydantic to define the schema:Tool calling
Response
Response
Response
Response
Response
Response