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] 无法使用LobeHub里的特定模型"chatgpt-4o-latest",也无法启用函数调用功能 #5563

Open
LeoStruggle666 opened this issue Jan 23, 2025 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@LeoStruggle666
Copy link

LeoStruggle666 commented Jan 23, 2025

📦 部署环境

Official Preview

📌 软件版本

线上版本

💻 系统环境

macOS

🌐 浏览器

Other

🐛 问题描述

  • 如下图,在LobeHub模型列表能看到"chatgpt-4o-latest"也能选择,但发消息就会出以下报错
    Image
{
  "error": {
    "code": "400",
    "type": "None",
    "param": "None",
    "message": {
      "error": "/chat/completions: Invalid model name passed in model=chatgpt-4o-latest. Call `/v1/models` to view available models for your key."
    }
  },
  "provider": "lobehub",
  "errorType": "ProviderBizError"
}

Image

  • 此外,也注意到"chatgpt-4o-latest"似乎不能启用函数调用,而指向老版本的gpt-4o却可以,这是bug吗还是有限制?

Image

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

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

👀 @LeoStruggle666

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 Jan 23, 2025

The error you're encountering with the model name "chatgpt-4o-latest" suggests that it might not be recognized by the system. To resolve this, you should verify the available models by calling the /v1/models endpoint. This will help ensure that "chatgpt-4o-latest" is indeed a valid model name in your current setup [1].

Regarding the function calling capability, the model must explicitly support this feature. The isCanUseFC function checks if a model is enabled for function calls based on its configuration. Ensure that the model's capabilities include function_calling [2][3][4][5].

If "chatgpt-4o-latest" is not listed or does not support function calling, it might be due to configuration restrictions or limitations specific to this model version.

To continue talking to Dosu, mention @dosu.


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

@LeoStruggle666
Copy link
Author

这个bot的回复还是无法解决我的问题,因为用的是LobeHub的线上版本+付费计划,不是自己部署的

@lobehubbot
Copy link
Member

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


This bot's reply still cannot solve my problem, because I am using LobeHub's online version + paid plan, not deployed by myself.

@Sun-drenched
Copy link

chatgpt-4o-latest本身就不支持函数调用

@lobehubbot
Copy link
Member

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


chatgpt-4o-latest itself does not support function calls

@arvinxx
Copy link
Contributor

arvinxx commented Jan 23, 2025

@LeoStruggle666 chatgpt-4o-latest 这个模型我检查下。函数调用那个,的确是 chatgpt-4o-latest 本身不支持

@lobehubbot
Copy link
Member

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


@LeoStruggle666 chatgpt-4o-latest I will check this model. The function call is indeed not supported by chatgpt-4o-latest itself.

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: Roadmap - Chat 1.x
Development

No branches or pull requests

4 participants