Skip to content

grok-2-image模型无法调用 #7142

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

Open
kisekinoumi opened this issue Mar 25, 2025 · 7 comments
Open

grok-2-image模型无法调用 #7142

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

Comments

@kisekinoumi
Copy link

kisekinoumi commented Mar 25, 2025

📦 部署环境

Docker

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

v1.74.8

💻 系统环境

Other Linux

🌐 浏览器

Edge

🐛 问题描述

使用grok-2-image相关模型时,由于该图片生成模型调用的endpoint与常规模型endpoint不同,分别为https://api.x.ai/v1/images/generations(图片生成)和https://api.x.ai/v1/chat/completions(普通对话),导致在调用grok-2-image-1212模型失败
{ "error": "The model grok-2-image-1212 is an image model and is therefore not available on this endpoint. Please use a compatible endpoint such as https://api.x.ai/v1/images/generations. For more information, see https://docs.x.ai/docs/api-reference#image-generations", "endpoint": "https://api.x.ai/v1", "provider": "xai" }

📷 复现步骤

No response

🚦 期望结果

在自定义模型选项中,增加一个支持编辑单个模型调用的endpoint的选项

Image

以便调用不同endpoint的模型

📝 补充信息

No response

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

👀 @kisekinoumi

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 25, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Mar 25, 2025
@coolqoo
Copy link

coolqoo commented Mar 28, 2025

+1

@Passerby1011
Copy link

这个是生图模型不能直接调用请使用插件功能
这里有个demo:
https://github.com/Passerby1011/lobechat-image-plugin

@lobehubbot
Copy link
Member

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


This is a raw graph model that cannot be called directly. Please use the plug-in function
Here is a demo:
https://github.com/Passerby1011/lobechat-image-plugin

@hedeqiang
Copy link
Contributor

这个是生图模型不能直接调用请使用插件功能 这里有个demo: https://github.com/Passerby1011/lobechat-image-plugin

star 了大佬的项目,但实际发现似乎有点问题

The manifest does not conform to the specification. Validation result: [ { "validation": "url", "code": "invalid_string", "message": "Invalid url", "path": [ "api", 0, "url" ] } ]

@Passerby1011
Copy link

Passerby1011 commented Apr 3, 2025

这个是生图模型不能直接调用请使用插件功能 这里有个demo: https://github.com/Passerby1011/lobechat-image-plugin

star 了大佬的项目,但实际发现似乎有点问题

The manifest does not conform to the specification. Validation result: [ { "validation": "url", "code": "invalid_string", "message": "Invalid url", "path": [ "api", 0, "url" ] } ]

你得把mainfest里的url换成你自己的,我写的时候留空了,还有vercel的运行时长都要适当的拉长 ,默认的10s不够

@hedeqiang
Copy link
Contributor

这个是生图模型不能直接调用请使用插件功能 这里有个demo: https://github.com/Passerby1011/lobechat-image-plugin

star 了大佬的项目,但实际发现似乎有点问题

The manifest does not conform to the specification. Validation result: [ { "validation": "url", "code": "invalid_string", "message": "Invalid url", "path": [ "api", 0, "url" ] } ]

你得把申明文件里的url换成你自己的

我懂了,感谢大佬

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

5 participants