We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello, i use self-hosted affine with copilot get some error need help
in affine confg.js i configured
AFFiNE.use('copilot', { openai: { baseURL: 'http://192.168.*.*:1234/v1/', apiKey: 'sk-111111111111111111111111111111111111111111111111', // actually lm studio won't check this jsonMode: false }, })
i'm sure the base url are accessible, my self hosted dify service also on the same server and use the api well.
the completion API were support by LM Studio
when use copilot functions the api will response with error
how can i solve it?
macOS x64 (Intel)
No response
[Nest] 1 - 03/06/2025, 5:56:11 AM DEBUG [JobQueue] <allinone:ws:b33f0510-9d7d-4145-9ed1-612fe7894eeb> Job [doc.mergePendingDocUpdates] added; id=doc:merge-pending-updates:c0877d5b-601f-42ce-b11e-ded9e4820caf:AMpFGCzFwC [Nest] 1 - 03/06/2025, 5:56:11 AM DEBUG [JobQueue] <allinone:ws:414695ca-9208-428d-8ead-d1379aa7ef55> Job [doc.mergePendingDocUpdates] added; id=doc:merge-pending-updates:c0877d5b-601f-42ce-b11e-ded9e4820caf:AMpFGCzFwC [Nest] 1 - 03/06/2025, 5:56:12 AM VERBOSE [Locker] <allinone:graphql:9ca80e27-0f27-4128-87dc-28100662d9f9> Client 2cc6bfdf-c2c1-4785-9c14-bb0d3a6f3520 is trying to lock resource copilot:session:fe77828a-88b5-4d04-ba9e-13fcafb22071:c0877d5b-601f-42ce-b11e-ded9e4820caf [Nest] 1 - 03/06/2025, 5:56:12 AM VERBOSE [Locker] <allinone:graphql:17a2d7fb-4988-4748-ab3e-814e835661d9> Client c550c43a-9a25-4987-b497-ce2369edc284 is trying to lock resource copilot:message:fe77828a-88b5-4d04-ba9e-13fcafb22071:ecacb4fe-bfeb-4871-ac02-a79a9ac01f13 [Nest] 1 - 03/06/2025, 5:56:12 AM ERROR [Sse] <allinone:http:c77d75e6-5891-4d32-aa4f-d804d9a9b2fa> copilot_provider_side_error ({"sessionId":"ecacb4fe-bfeb-4871-ac02-a79a9ac01f13","params":{},"throwInStream":true,"model":"gpt-4o"}) copilot_provider_side_error: Provider openai failed with unknown error: 400 "'response_format.type' must be 'json_schema'" at OpenAIProvider.handleError (file:///app/dist/plugins/copilot/providers/openai.js:132:20) at OpenAIProvider.generateTextStream (file:///app/dist/plugins/copilot/providers/openai.js:206:24) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) [Nest] 1 - 03/06/2025, 5:56:14 AM VERBOSE [Locker] <allinone:graphql:8f0a2cf6-7f11-4b6d-832c-b0019c5a6a32> Client 9dc6e623-89ce-401a-acf8-5a29334dde2d is trying to lock resource copilot:session:fe77828a-88b5-4d04-ba9e-13fcafb22071:c0877d5b-601f-42ce-b11e-ded9e4820caf [Nest] 1 - 03/06/2025, 5:56:14 AM VERBOSE [Locker] <allinone:graphql:2ea12979-1dcb-4d64-9754-fff55f950158> Client aa8d8b1c-e8f8-488e-95b8-b119d745d021 is trying to lock resource copilot:message:fe77828a-88b5-4d04-ba9e-13fcafb22071:ecacb4fe-bfeb-4871-ac02-a79a9ac01f13 [Nest] 1 - 03/06/2025, 5:56:14 AM ERROR [Sse] <allinone:http:e818601b-4a4a-41e5-8caf-16a140206a4c> copilot_provider_side_error ({"sessionId":"ecacb4fe-bfeb-4871-ac02-a79a9ac01f13","params":{},"throwInStream":true,"model":"gpt-4o"}) copilot_provider_side_error: Provider openai failed with unknown error: 400 "'response_format.type' must be 'json_schema'" at OpenAIProvider.handleError (file:///app/dist/plugins/copilot/providers/openai.js:132:20) at OpenAIProvider.generateTextStream (file:///app/dist/plugins/copilot/providers/openai.js:206:24) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) [Nest] 1 - 03/06/2025, 5:56:15 AM VERBOSE [Locker] <allinone:graphql:08dc1334-e82c-4fa9-b01c-e03ca975e2e8> Client 842e4794-90f8-4a12-8f77-e9ab40ae66c5 is trying to lock resource copilot:session:fe77828a-88b5-4d04-ba9e-13fcafb22071:c0877d5b-601f-42ce-b11e-ded9e4820caf [Nest] 1 - 03/06/2025, 5:56:15 AM VERBOSE [Locker] <allinone:graphql:337fbc67-15c1-4162-bd7c-f37669cd0bf9> Client c32d96d6-dd79-4367-9561-e4df71df861c is trying to lock resource copilot:message:fe77828a-88b5-4d04-ba9e-13fcafb22071:ecacb4fe-bfeb-4871-ac02-a79a9ac01f13 [Nest] 1 - 03/06/2025, 5:56:15 AM ERROR [Sse] <allinone:http:436008c7-1c70-4b69-883d-46f1f5bcdfb5> copilot_provider_side_error ({"sessionId":"ecacb4fe-bfeb-4871-ac02-a79a9ac01f13","params":{},"throwInStream":true,"model":"gpt-4o"}) copilot_provider_side_error: Provider openai failed with unknown error: 400 "'response_format.type' must be 'json_schema'" at OpenAIProvider.handleError (file:///app/dist/plugins/copilot/providers/openai.js:132:20) at OpenAIProvider.generateTextStream (file:///app/dist/plugins/copilot/providers/openai.js:206:24) at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
The text was updated successfully, but these errors were encountered:
*🆕 Untriaged
The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md
This is an automatic reply by the bot.
Sorry, something went wrong.
and i'm using text 2 text model:https://huggingface.co/Qwen/Qwen2.5-14B-Instruct-1M and embedding model https://huggingface.co/nomic-ai/nomic-embed-text-v1.5
No branches or pull requests
What happened?
hello, i use self-hosted affine with copilot get some error need help
in affine confg.js i configured
i'm sure the base url are accessible, my self hosted dify service also on the same server and use the api well.
when use copilot functions the api will response with error
how can i solve it?
Distribution version
macOS x64 (Intel)
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
Relevant log output
Anything else?
No response
The text was updated successfully, but these errors were encountered: