Replies: 16 comments 29 replies
-
Can I enable the AI in an unofficial way now in my instance?The answer is yes. Steps for those using provided compose file:1. create a JSON config at
{
"$schema": "https://github.com/toeverything/affine/releases/latest/download/config.schema.json",
"copilot": {
"enabled": true,
"providers.openai": {
"apiKey": "your key",
"baseUrl": "open-ai-compatitable.example.com"
}
}
} 2. restart your host docker compose up -d Steps for custom deployment:1. create a JSON config {
"$schema": "https://github.com/toeverything/affine/releases/latest/download/config.schema.json",
"copilot": {
"enabled": true,
"providers.openai": {
"apiKey": "your key",
}
}
} 2. Mount or Copy the config file to your instance 3. import the config node --import ./scripts/register.js ./dist/data/index.js import-config ./path/to/config.json 4. restart your host |
Beta Was this translation helpful? Give feedback.
-
How can I configure DeepSeek? How to set up the model. Moreover, in the 0.21.2 management panel, the AI function cannot be activated. |
Beta Was this translation helpful? Give feedback.
-
Hello! Thanks for the tips for selfhosted instance Will there be AI support for local workspace? |
Beta Was this translation helpful? Give feedback.
-
好像仍然有10次的使用限制,我使用自己的 API key 进行配置,并在openrouter后台看到了使用记录,但是affine中的AI仍然只能使用10次 |
Beta Was this translation helpful? Give feedback.
-
I created for myself a small server between Affine and Gemini or OpenRouter, who provides free API keys. Not sure if this allowed here in this chat. |
Beta Was this translation helpful? Give feedback.
-
Since recently, I get this error message when trying to use it:
My relevant {
"$schema": "https://github.com/toeverything/affine/releases/latest/download/config.schema.json",
"server": {
"name": "myname",
"host": "affine.myname.de",
"https": true
},
"copilot": {
"enabled": true,
"providers.openai": {
"apiKey": "sk-proj-...",
}
}
} Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Which docker version does your solution work with? I have used stable and canary version and none work with your configuration and would like to know the version that works to see the difference in code from before to now to know how to fix this and possibly have a Github PR made with a solution. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to define which model to use? |
Beta Was this translation helpful? Give feedback.
-
I use openresty to redirect the requests to deepseek
and the config.json
|
Beta Was this translation helpful? Give feedback.
-
Is there a usage cap when using AI on self hosted even when using my own AI Token???? |
Beta Was this translation helpful? Give feedback.
-
Even tho I set the config.json (validated if its set with cat config.json in root/.affine/config) and set unlimited ai usage, I get this error when trying to send a message: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hope AFFiNE to support custom providers(ollama, deepseek, ...) |
Beta Was this translation helpful? Give feedback.
-
Hey guys, since ./scripts/register.js got removed, I can't import my config for the ai anymore with node --import ./scripts/register.js ./dist/data/index.js import-config ./path/to/config.json. Did anybody get ai to work on 0.22.2? |
Beta Was this translation helpful? Give feedback.
-
Any updates? |
Beta Was this translation helpful? Give feedback.
-
Any updates? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Progress
Beta Was this translation helpful? Give feedback.
All reactions