Elffuss BraidHub

kikocis/continue public

627d7d0d1f85 · 2.6 KiBRawPermalink
1---
2title: "Function Network"
3---
4
5---
6
7title: Function Network
8slug: ../function-network
9
10---
11
12> Private, Affordable User-Owned AI
13
14<Info>
15
16To get an API key, login to the Function Network Developer Platform. If you don't have an account, you can create one [here](https://www.function.network/join-waitlist).
17
18</Info>
19
20## Chat model
21
22Function Network supports a number of models for chat. We recommend using LLama 3.1 70b or Qwen2.5-Coder-32B-Instruct.
23
24<Tabs>
25 <Tab title="YAML">
26 ```yaml title="config.yaml"
27 models:
28 - name: Llama 3.1 70b
29 provider: function-network
30 model: meta/llama-3.1-70b-instruct
31 apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
32 roles:
33 - chat
34 ```
35 </Tab>
36 <Tab title="JSON">
37 ```json title="config.json"
38 {
39 "models": [
40 {
41 "title": "Llama 3.1 70b",
42 "provider": "function-network",
43 "model": "meta/llama-3.1-70b-instruct",
44 "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
45 }
46 ]
47 }
48 ```
49 </Tab>
50</Tabs>
51
52[Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers.
53
54## Autocomplete model
55
56Function Network supports a number of models for autocomplete. We recommend using Llama 3.1 8b or Qwen2.5-Coder-1.5B.
57
58<Tabs>
59 <Tab title="YAML">
60 ```yaml title="config.yaml"
61 models:
62 - name: Deepseek Coder 6.7b
63 provider: function-network
64 model: thebloke/deepseek-coder-6.7b-base-awq
65 apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
66 roles:
67 - autocomplete
68 ```
69 </Tab>
70 <Tab title="JSON">
71 ```json title="config.json"
72 {
73 "tabAutocompleteModel": {
74 "title": "Deepseek Coder 6.7b",
75 "provider": "function-network",
76 "model": "thebloke/deepseek-coder-6.7b-base-awq",
77 "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
78 }
79 }
80 ```
81 </Tab>
82</Tabs>
83
84## Embeddings model
85
86Function Network supports a number of models for embeddings. We recommend using baai/bge-base-en-v1.5.
87
88<Tabs>
89 <Tab title="YAML">
90 ```yaml title="config.yaml"
91 models:
92 - name: BGE Base En
93 provider: function-network
94 model: baai/bge-base-en-v1.5
95 apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
96 roles:
97 - embed
98 ```
99 </Tab>
100 <Tab title="JSON">
101 ```json title="config.json"
102 {
103 "embeddingsProvider": {
104 "provider": "function-network",
105 "model": "baai/bge-base-en-v1.5",
106 "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
107 }
108 }
109 ```
110 </Tab>
111</Tabs>
112
113[Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers.
114
115## Reranking model
116
117Function Network currently does not offer any reranking models.