Authentication
Nexus requires API keys for the underlying model providers. Set the appropriate environment variables for the models you plan to use:Example
UseNexus with your Agent:
View more examples here.
Params
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "openai/gpt-4" | The id of the model to use through Nexus |
name | str | "Nexus" | The name of the model |
provider | str | "Nexus" | The provider of the model |
api_key | Optional[str] | "not-provided" | The API key sent to the Nexus router. Not required for a local deployment |
base_url | str | "http://localhost:8000/llm/v1/" | The base URL for the Nexus API |
Nexus also supports the params of OpenAI.