note-gen icon indicating copy to clipboard operation
note-gen copied to clipboard

[bug] 嵌入模型配置-403

Open gy8958398 opened this issue 1 year ago • 2 comments

详细描述这个 Bug

配置嵌入模型时,提示403,本地ollama提供的服务。

Image

NoteGen 版本

0.19.3

操作系统

macOS

报错日志

No response

gy8958398 avatar Jul 10 '25 03:07 gy8958398

@gy8958398 你好请问问题后来解决了么?遇到了同样的问题,尝试了自定义模型或者修改BaseURL为ollama官方文档的http://localhost:11434/api/embed或者http://localhost:11434/api/embeddings都不行,curl访问是没问题的:

shuheng-mo@shuheng-mos-Air ~ % curl http://localhost:11434/api/embeddings -d '{"model":"bge-m3:latest","prompt":"this is a test phrase."}'
{"embedding":[-0.33556628227233887, ... ,-0.030232461169362068,0.056255683302879333]}% 

且ollama跨域访问环境变量已经配置

shuheng-mo avatar Jul 10 '25 07:07 shuheng-mo

已确认

codexu avatar Jul 10 '25 08:07 codexu