Alcadeus
Alcadeus2d ago

convex-rag with openAI throwing error

9/22/2025, 3:30:37 PM [CONVEX A(knowledgeBase:processDocument)] [ERROR] 'Error processing document:' { [Error: 400 Only the /chat/completions API is supported] status: 400, headers: Headers { 'content-length': '43', 'content-type': 'text/plain;charset=UTF-8', date: 'Mon, 22 Sep 2025 12:30:36 GMT', via: '1.1 Caddy', 'x-convex-usher': '1' }, requestID: null, error: undefined, code: undefined, param: undefined, type: undefined }
9/22/2025, 3:30:37 PM [CONVEX A(knowledgeBase:processDocument)] [ERROR] 'Error processing document:' { [Error: 400 Only the /chat/completions API is supported] status: 400, headers: Headers { 'content-length': '43', 'content-type': 'text/plain;charset=UTF-8', date: 'Mon, 22 Sep 2025 12:30:36 GMT', via: '1.1 Caddy', 'x-convex-usher': '1' }, requestID: null, error: undefined, code: undefined, param: undefined, type: undefined }
not sure why? i am following along the convex-rag doc
2 Replies
Convex Bot
Convex Bot2d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Alcadeus
AlcadeusOP2d ago
here is also my convex/knowlegde.ts file

Did you find this page helpful?