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