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] 视觉模式回答不完整(回答中断) #4084

Closed
3 tasks
devyujie opened this issue Feb 20, 2024 · 23 comments
Closed
3 tasks

[Bug] 视觉模式回答不完整(回答中断) #4084

devyujie opened this issue Feb 20, 2024 · 23 comments
Labels
bug Something isn't working

Comments

@devyujie
Copy link

Bug Description

image

Steps to Reproduce

Expected Behavior

Screenshots

No response

Deployment Method

  • Docker
  • Vercel
  • Server

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

@devyujie devyujie added the bug Something isn't working label Feb 20, 2024
@Issues-translate-bot
Copy link

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


Title: [Bug] Incomplete answer in visual mode (interrupted answer)

@QAbot-zh
Copy link

+1

2 similar comments
@X-Zero-L
Copy link

+1

@boanz
Copy link

boanz commented Feb 22, 2024

+1

@jam-cc
Copy link

jam-cc commented Feb 23, 2024

@devyujie 请教一下怎么使用视觉模式?在哪里输入图片呢?

@Issues-translate-bot
Copy link

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


@devyujie Please tell me how to use visual mode? Where do I enter the image?

@QAbot-zh
Copy link

@devyujie 请教一下怎么使用视觉模式?在哪里输入图片呢?

切换成一个支持视觉的模型,比如gpt4v或者gemini-vision,就会出现上传图片的图标

@Issues-translate-bot
Copy link

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


@devyujie Please tell me how to use visual mode? Where do I enter the image?

Switch to a model that supports vision, such as gpt4v or gemini-vision, and the icon for uploading images will appear.

@KyleJKC
Copy link

KyleJKC commented Feb 24, 2024

Same

@DreamsCat
Copy link

same,hot to fix? change max_tokens to 4096,same problean

@H0llyW00dzZ
Copy link
Contributor

you need to use max_tokens for gpt-4-vision-preview

example:

https://hackerchat.btz.sh/

image

@H0llyW00dzZ
Copy link
Contributor

same,hot to fix? change max_tokens to 4096,same problean

it doesn't work because default on this repository has been disabled it

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/app/client/platforms/openai.ts#L109

@H0llyW00dzZ
Copy link
Contributor

Anyways This bug can be easily fixed. However, I don't believe it will be merged into the main branch since the owner has made changes.

@AndyX-Net
Copy link

AndyX-Net commented Feb 27, 2024

Anyways This bug can be easily fixed. However, I don't believe it will be merged into the main branch since the owner has made changes.

It's really bad, the problem still reproduce even after updated to version 2.11.2.

@H0llyW00dzZ
Copy link
Contributor

H0llyW00dzZ commented Feb 27, 2024

Anyways This bug can be easily fixed. However, I don't believe it will be merged into the main branch since the owner has made changes.

It's really bad, the problem still reproduce even after updated to version 2.11.2.

Yes, I understand that there's nothing particularly remarkable about the latest version. It would be more beneficial to focus on bug fixes and performance improvements, rather than adding another AI that may not be entirely stable for everyone.

@DreamsCat
Copy link

you need to use max_tokens for gpt-4-vision-preview

example:

https://hackerchat.btz.sh/

image

thank,but I don't see the use max tokens option...

@DreamsCat
Copy link

same,hot to fix? change max_tokens to 4096,same problean

it doesn't work because default on this repository has been disabled it

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/app/client/platforms/openai.ts#L109

okok,i got it

@AndyX-Net
Copy link

Anyways This bug can be easily fixed. However, I don't believe it will be merged into the main branch since the owner has made changes.

It's really bad, the problem still reproduce even after updated to version 2.11.2.

Yes, I understand that there's nothing particularly remarkable about the latest version. It would be more beneficial to focus on bug fixes and performance improvements, rather than adding another AI that may not be entirely stable for everyone.

Agree with your point : )

@KSnow616
Copy link
Contributor

same,hot to fix? change max_tokens to 4096,same problean

it doesn't work because default on this repository has been disabled it

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/app/client/platforms/openai.ts#L109

Currently GPT4-v has a very low max_token default value, which makes the replies very short and imcomplete. Uncommenting the line and build from source again will pass the max_token value again, override the default and solve the problem.

@fred-bf
Copy link
Contributor

fred-bf commented Feb 27, 2024

To minimize the impact, only the Vision Model is currently configured separately for max_tokens. If you encounter additional problems, please feel free to give feedback

@induite
Copy link

induite commented Mar 1, 2024

有一个问题,就是图片太大的时候就报错了,能否上传后自动压缩图片?

@Issues-translate-bot
Copy link

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


There is a problem, that is, an error is reported when the image is too large. Can the image be automatically compressed after uploading?

@fred-bf fred-bf closed this as completed Mar 1, 2024
@dustookk
Copy link
Contributor

dustookk commented Aug 21, 2024

I just solved the same problem; I hope this can help you guys.

change the code of isVisionModel make sure your model name is included

change the code of visionModel && modelConfig.model.includes("preview") make sure your model name is included

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
None yet
Development

No branches or pull requests