Open FilJed opened 9 months ago
Yeah thanks, this solved my issue. If your custom openai compatible endpoint is in nodeJS, for example, add CORS to your response headers like:
new Response(
JSON.stringify(data),
{ headers: {
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*", // or specify a particular origin
} })
might make a difference.
Hi!
I have my own openai compatible endpoint that works fine in all my programs i.e. in python:
So endpoint works fine.
But when I try to put it as API_URL I keep getting network error message in logs
Thing that confuses me is the error message contain no port info. Is it normal?
I've tried putting all cersions:
http://***.111:80/v1/audio/transcriptions
http://***.111:80/v1
http://***.111:80
Non of them proved to be workingI saw in other issues (i.e. https://github.com/nikdanilov/whisper-obsidian-plugin/issues/2) that changing endpoint works well. What I'm doing wrong?