Skip to content
New issue

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

CORS error in Auto-Suggest when using custom LLM provider #327

Open
odd256 opened this issue Sep 27, 2024 · 0 comments
Open

CORS error in Auto-Suggest when using custom LLM provider #327

odd256 opened this issue Sep 27, 2024 · 0 comments

Comments

@odd256
Copy link

odd256 commented Sep 27, 2024

  • obsidian version: 1.6.7

  • plugin version: 0.7.41

  • concole log:
    Access to fetch at 'https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions' from origin 'app://obsidian.md' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    plugin:obsidian-textgenerator-plugin:1985 POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions net::ERR_FAILED

  • reproduce:
    I have integrated aliyun LLM service as my LLM provider, and switch on the CORS Bypass button. While text generation is functioning correctly, I encounter errors when attempting to use the Auto-Suggest feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant