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

OpenRouter - Fetch models #7033

Open
ivanvmr opened this issue Mar 18, 2025 · 3 comments
Open

OpenRouter - Fetch models #7033

ivanvmr opened this issue Mar 18, 2025 · 3 comments
Labels
🐛 Bug Something isn't working | 缺陷 unconfirm 未被维护者确认的问题

Comments

@ivanvmr
Copy link

ivanvmr commented Mar 18, 2025

📦 Platform

Vercel

📦 Deploymenet mode

client pgelite db (lobe-chat-pglite image)

📌 Version

v1.72.0

💻 Operating System

Windows

🌐 Browser

Firefox

🐛 Bug Description

Fetch models option for the OpenRouter doesn't retrieve any models. I redefined the models, and now I can't get the updated list back.

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@ivanvmr ivanvmr added the unconfirm 未被维护者确认的问题 label Mar 18, 2025
@lobehubbot
Copy link
Member

👀 @ivanvmr

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@dosubot dosubot bot added the 🐛 Bug Something isn't working | 缺陷 label Mar 18, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Mar 18, 2025
@Superzk1024
Copy link

同样使用 openrouter 服务商无法刷新模型列表,通过 F12 观察发现调用了两次接口,第一次调用
https://openrouter.ai/api/v1/models 200成功并且已经获取到了最新的模型列表,但是接着调用了
https://openrouter.ai/api/frontend/models 状态为 CORS 错误,可能是因为第二个接口的失败导致业务逻辑没有走完所以没有刷新模型列表?但是第一个接口不是已经成功拉取到最新的模型列表了吗?

Image

Image

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Also using openrouter service providers cannot refresh the model list. Through F12 observation, it was found that the interface was called twice, and the first time it was called.
https://openrouter.ai/api/v1/models 200 succeeded and the latest model list has been obtained, but then the call
https://openrouter.ai/api/frontend/models The status is CORS error, maybe it is because the business logic has not been completed due to the failure of the second interface, so the model list is not refreshed? But hasn't the first interface successfully pulled the latest model list?

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 unconfirm 未被维护者确认的问题
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants