Authentication
Set yourLANGDB_API_KEY
environment variable. Get your key from here.
Example
UseLangDB
with your Agent
:
Params
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "gpt-4o-mini" | The id of the model to use through LangDB |
name | str | "LangDB" | The name of the model |
provider | str | "LangDB" | The provider of the model |
api_key | Optional[str] | None | The API key for LangDB (defaults to LANGDB_API_KEY env var) |
base_url | str | "https://api.langdb.ai/v1" | The base URL for the LangDB API |
LangDB
also supports the params of OpenAI.