Discourse Gemini's embedding-001 调用失败

系统返回错误:

Trying to contact the model returned this error: { "error": { "code": 404, "message": "models/embedding-001 is not found for API version v1beta, or is not supported for embedContent. Call ListModels to see the list of available models and their supported methods.", "status": "NOT_FOUND" } }

到官方网站上提交了一个 bug 报告:Discourse Gemini’s embedding-001 Call error - Support - Discourse Meta

出行这个问题的配置位置为 AI 部分:

官方测了,貌似没有问题。

但我们这边今天开始出现这个问题。

I changed to Text instead of google to void this error.

It was working but happen today.

真的有点奇怪。

更新调用地址就可以了。

调用地址为:

https://generativelanguage.googleapis.com/v1beta/models/gemini-embedding-001:embedContent

1 Like