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

[Bug] 无法使用天翼云Api #5978

Closed
Hxnxe opened this issue Feb 10, 2025 · 13 comments
Closed

[Bug] 无法使用天翼云Api #5978

Hxnxe opened this issue Feb 10, 2025 · 13 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Hxnxe
Copy link

Hxnxe commented Feb 10, 2025

📦 Environment

Vercel

📌 Version

v1.52.11

💻 Operating System

Windows

🌐 Browser

Chrome

🐛 Bug Description

Image

自定义的服务商-天翼云无法使用

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@Hxnxe Hxnxe added the 🐛 Bug Something isn't working | 缺陷 label Feb 10, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Feb 10, 2025
@lobehubbot
Copy link
Member

👀 @Hxnxe

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Feb 10, 2025

Hey @Hxnxe! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together!

The issue you're encountering with the "ctyun" API in the LobeChat framework might be related to several factors, such as incorrect API configuration, encryption issues, or connectivity problems. Here are a few steps you can take to troubleshoot and potentially resolve the issue:

  1. API Key and Endpoint URL: Double-check that the API Key and Endpoint URL are correctly entered in the configuration interface. Any typo or incorrect value could lead to a request failure.

  2. Client Request Mode: Ensure that the client request mode toggle is set correctly. This mode can affect the functionality of integrations like Ollama, and it might also impact the "ctyun" service if similar dependencies exist [1].

  3. Encryption Configuration: Verify that the AES-GCM encryption settings are correctly configured. Although specific details about the implementation are not available, ensuring that encryption keys and parameters are set correctly is crucial.

  4. Model List Configuration: Check the model list configuration to ensure that the correct model IDs are being used. The model list is defined using the OPENAI_MODEL_LIST environment variable, which controls model availability and display order [2][3].

  5. Error Handling and Logging: Since the error message indicates an empty error object, it might be helpful to enable any available logging or debugging tools within the LobeChat framework to gather more information about the connectivity issue.

If these steps do not resolve the issue, reviewing the specific error messages or codes returned by the API request process could provide further insights into the problem.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@sxjeru
Copy link
Contributor

sxjeru commented Feb 10, 2025

可以开浏览器控制台看看,是不是因为跨域 CORS 请求被拦截了。或者关闭客户端请求试试。

附上文档:https://www.ctyun.cn/document/10541165/10876779#p-ff59a237b14312b4

@lobehubbot
Copy link
Member

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


You can open the browser console to see if it is because the cross-domain CORS request has been intercepted. Or try closing the client request.

@arvinxx
Copy link
Contributor

arvinxx commented Feb 10, 2025

大概率是不支持客户端请求吧…

@arvinxx arvinxx closed this as completed Feb 10, 2025
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Feb 10, 2025
@lobehubbot
Copy link
Member

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


It is likely that the client request is not supported...

@lobehubbot
Copy link
Member

@Hxnxe

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@Hxnxe
Copy link
Author

Hxnxe commented Feb 11, 2025

Image

新的问题,官方提供的mouldid使用时却报错

Image
但是仔细调用接口发现,是这个mouldid没错

Image

@lobehubbot
Copy link
Member

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


Image
New problem, the official Mouldid was used but the error was reported

Image
But when you call the interface carefully, it is true that this mouldid is correct

Image

@sxjeru
Copy link
Contributor

sxjeru commented Feb 11, 2025

你的模型 id 是不是多了首尾引号?

连通性检查可能匹配不到自定义的模型 id,可以直接试试能否聊天。

@lobehubbot
Copy link
Member

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


Does your model id have additional beginning and end quotes?

@Hxnxe
Copy link
Author

Hxnxe commented Feb 11, 2025

已解决,谢谢,确实是#连通性检查可能匹配不到自定义的模型 id 这个问题。

@lobehubbot
Copy link
Member

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


Solved, thanks, it is indeed the issue #Connectivity Check may not match the custom model id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

4 participants