| 1 | --- |
| 2 | title: "SiliconFlow" |
| 3 | --- |
| 4 | |
| 5 | --- |
| 6 | |
| 7 | ## title: SiliconFlow |
| 8 | |
| 9 | <Info> |
| 10 | You can get an API key from the [Silicon |
| 11 | Cloud](https://cloud.siliconflow.cn/account/ak). |
| 12 | </Info> |
| 13 | |
| 14 | ## Chat model |
| 15 | |
| 16 | We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model. |
| 17 | |
| 18 | <Tabs> |
| 19 | <Tab title="YAML"> |
| 20 | ```yaml title="config.yaml" |
| 21 | models: |
| 22 | - name: Qwen |
| 23 | provider: siliconflow |
| 24 | model: Qwen/Qwen2.5-Coder-32B-Instruct |
| 25 | apiKey: <YOUR_SILICONFLOW_API_KEY> |
| 26 | roles: |
| 27 | - chat |
| 28 | ``` |
| 29 | </Tab> |
| 30 | <Tab title="JSON"> |
| 31 | ```json title="config.json" |
| 32 | { |
| 33 | "models": [ |
| 34 | { |
| 35 | "title": "Qwen", |
| 36 | "provider": "siliconflow", |
| 37 | "model": "Qwen/Qwen2.5-Coder-32B-Instruct", |
| 38 | "apiKey": "<YOUR_SILICONFLOW_API_KEY>" |
| 39 | } |
| 40 | ] |
| 41 | } |
| 42 | ``` |
| 43 | </Tab> |
| 44 | </Tabs> |
| 45 | |
| 46 | ## Autocomplete model |
| 47 | |
| 48 | We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete model. |
| 49 | |
| 50 | <Tabs> |
| 51 | <Tab title="YAML"> |
| 52 | ```yaml title="config.yaml" |
| 53 | models: |
| 54 | - name: Qwen |
| 55 | provider: siliconflow |
| 56 | model: Qwen/Qwen2.5-Coder-32B-Instruct |
| 57 | apiKey: <YOUR_SILICONFLOW_API_KEY> |
| 58 | roles: |
| 59 | - autocomplete |
| 60 | ``` |
| 61 | </Tab> |
| 62 | <Tab title="JSON"> |
| 63 | ```json title="config.json" |
| 64 | { |
| 65 | "models": [ |
| 66 | { |
| 67 | "title": "Qwen", |
| 68 | "provider": "siliconflow", |
| 69 | "model": "Qwen/Qwen2.5-Coder-32B-Instruct", |
| 70 | "apiKey": "<YOUR_SILICONFLOW_API_KEY>" |
| 71 | } |
| 72 | ] |
| 73 | "tabAutocompleteModel": { |
| 74 | "title": "Qwen", |
| 75 | "provider": "siliconflow", |
| 76 | "model": "Qwen/Qwen2.5-Coder-7B-Instruct", |
| 77 | "apiKey": "<YOUR_SILICONFLOW_API_KEY>" |
| 78 | } |
| 79 | } |
| 80 | ``` |
| 81 | </Tab> |
| 82 | </Tabs> |
| 83 | |
| 84 | ## Embeddings model |
| 85 | |
| 86 | SiliconFlow provide some embeddings models. [Click here](https://siliconflow.cn/models) to see a list of embeddings models. |
| 87 | |
| 88 | ## Reranking model |
| 89 | |
| 90 | SiliconFlow provide some reranking models. [Click here](https://siliconflow.cn/models) to see a list of reranking models. |