Replies: 55 comments 116 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 -dSteps 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.json4. restart your host |
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. |
|
Hello! Thanks for the tips for selfhosted instance Will there be AI support for local workspace? |
|
好像仍然有10次的使用限制,我使用自己的 API key 进行配置,并在openrouter后台看到了使用记录,但是affine中的AI仍然只能使用10次 |
|
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. |
|
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? |
|
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. |
|
Is there a way to define which model to use? |
|
I use openresty to redirect the requests to deepseek and the config.json |
|
Is there a usage cap when using AI on self hosted even when using my own AI Token???? |
|
Hope AFFiNE to support custom providers(ollama, deepseek, ...) |
|
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? |
|
Any updates? |
Although version 0.25.1 has been released, it still does not support custom providers such as Ollama and DeepSeek. Is there an estimated timeline for when this feature will be available? |
|
I have AI working. Am I correct in assuming the names in the UI will not change regardless of what I put in the AI config? They will always say gemini? |
|
ty |
|
Does anyone know how to integrate openrouter in place of open ai? |
|
I don't know if it's the same for you, but after struggling for a few days, I went to the admin settings > Accounts on the far right, click the 3 dots under "actions" for your username > edit > then select UnlimitedCopilot. Everything worked fine for me after that. I hope it's as easy for someone else as it was for me. |
Can people share their working configs?someone post a working open router config, a litellm, a ollama, etc. then we can put them at the top in the main message @forehalo this thread is getting long with lots of conflicting information |
|
Here, I use LiteLLM to proxy third-party models, employing a reverse proxy method (cloudflare worker or caddy server) to proxy the Gemini API. I didn't cover all the scenarios. That can only solve the basic problem of using third-party models in Affine selfhost. |
|
I wonder if everyone is still interested in this topic. I’ve made an important discovery (with the help of GitHub Copilot): by simply setting a single environment variable— The article has been updated, and I hope it will be helpful for everyone https://torchtree.com/en/post/affine-selfhost-ai-configuration/
|
|
Setting This issue persists with self-hosted LLMs like vLLM and Ollama, where the logs from |
|
I tried everything in this thread and Copilot still not working. Even using an OpenAI key after a fresh install I get I'm using LiteLLM and is working well with other tools, and the config for the openai provider set at I even used a proxied URL and AFFiNE is not calling it when I configure it as openai baseUrl... How can this be debugged to at least find the URL used? |
|
Why has the "unlimited AI" toggle disappeared from the self-hosted admin panel since 0.27.x? The AI provider configuration also seems to be missing from the config now. My AI setup had been working fine for months and just broke because of these changes. My profile shows that I've reached my AI limits, even though I had enabled unlimited AI before. Is anyone else experiencing this issue? |
|
So, how exactly do I get ai integrations to work? All I get is Despite having configured openai provider. |











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
All reactions