Authentication
Set yourSILICONFLOW_API_KEY
environment variable. Get your key from Siliconflow here.
Example
UseSiliconflow
with your Agent
:
View more examples here.
Params
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "meta-llama/Meta-Llama-3.1-8B-Instruct" | The id of the SiliconFlow model to use |
name | str | "SiliconFlow" | The name of the model |
provider | str | "SiliconFlow" | The provider of the model |
api_key | Optional[str] | None | The API key for SiliconFlow (defaults to SILICONFLOW_API_KEY env var) |
base_url | str | "https://api.siliconflow.cn/v1" | The base URL for the SiliconFlow API |
Siliconflow
also supports the params of OpenAI.