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 | "openai/gpt-oss-120b" | The specific model ID used for generating responses. |
name | str | "SiliconFlow" | The name identifier for the SiliconFlow agent. |
provider | str | "SiliconFlow" + id | The provider of the model, combining "SiliconFlow" with the model ID. |
api_key | Optional[str] | - | The API key for authenticating requests to the SiliconFlow service. Retrieved from the environment variable SILICONFLOW_API_KEY . |
base_url | str | "https://api.siliconflow.com/v1" | The base URL for making API requests to the SiliconFlow service. |
Siliconflow
also supports the params of OpenAI.