How to make AI with self-hosted deployment of v0.20 work #10549
Replies: 5 comments 10 replies
-
Hey there, thanks for the description. I added it to the file and saved + restarted. Still getting this error: An error occurred, If this issue persists please let us know. Any idea? I added the OPEN AI API KEY to the env vars. |
Beta Was this translation helpful? Give feedback.
-
My affine.ts is located at But I'm seeing the same error. I'm also hosting it on coolify. |
Beta Was this translation helpful? Give feedback.
-
AI was working great, but just updated to 0.21 and its disappeared, anyone know how to get it back? |
Beta Was this translation helpful? Give feedback.
-
@hnykda hey, have you figured out how to make it work on the latest ver? |
Beta Was this translation helpful? Give feedback.
-
Alright had sometime to dig around the code today, here's what working for me based on how all thing is wired up on self hosted. My AFFiNE app version: Your json should look like this:
In your Restart/rebuild your docker container. Doesn't seem to be a way to change the model, currently it's using |
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.
-
I wasn't sure if I can make this work, but voila, it works. I am grateful for Affine and the team behind it, thanks a lot!
What I needed to do was to add this to the
affine.ts
, set theCOPILOT_OPENAI_API_KEY
env variable to my OpenAI API Key, and voila, it just works:in my specific case, I have a docker-compose deployment via coolify, so with this config:
and then the file where I added the above is under
./data/config/affine.js
Beta Was this translation helpful? Give feedback.
All reactions