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] gpt4-vision-preview 回答不完整 #4024

Closed
sunquan819 opened this issue Feb 9, 2024 · 4 comments
Closed

[Bug] gpt4-vision-preview 回答不完整 #4024

sunquan819 opened this issue Feb 9, 2024 · 4 comments

Comments

@sunquan819
Copy link

后端对接 one-api 使用 Azure OpenAI gpt-3.5 和 gpt4-vision-preview, 发现 gpt3.5正常,gpt4 回答只能显示开头的一段话,同样的使用方式,前端换成 chatgpt-web ,3.5 和 4 都正常。

@nextchat-manager
Copy link

Please follow the issue template to update description of your issue.

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug]

@sunquan819 sunquan819 changed the title [Bug] [Bug] gpt4-vision-preview 回答不完整 Feb 9, 2024
@fred-bf fred-bf closed this as completed Feb 26, 2024
@goodls-cs
Copy link

Azure-GPT4需设置 "max_tokens" 值,否则返回输出将被截断。
例如:
{ "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": [ { "type": "text", "text": "Describe this picture:" }, { "type": "image_url", "image_url": { "url": "<image URL>" } } ] } ], "max_tokens": 100, "stream": false }

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Azure-GPT4 needs to set the "max_tokens" value, otherwise the returned output will be truncated.
For example:
{ "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": [ { "type": "text", "text": "Describe this picture:" }, { "type": "image_url", "image_url": { "url": "<image URL>" } } ] } ], "max_tokens": 100, "stream": false }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants