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

[Feature] Gemini Pro模型不支持流输出 #3677

Open
leochen12-rgb opened this issue Dec 28, 2023 · 9 comments
Open

[Feature] Gemini Pro模型不支持流输出 #3677

leochen12-rgb opened this issue Dec 28, 2023 · 9 comments
Labels
planned planned feature, will support in the future

Comments

@leochen12-rgb
Copy link

使用docker-compose部署的v2.10.1: Support Google Gemini mode不支持流式文本输出,只能全部输出结果。没有打字机效果哦~

@Issues-translate-bot
Copy link

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


Title: [Bug] Gemini Pro model does not support stream output

v2.10.1 deployed using docker-compose: Support Google Gemini mode does not support streaming text output and can only output all results. There is no typewriter effect~

@H0llyW00dzZ
Copy link
Contributor

使用docker-compose部署的v2.10.1: Support Google Gemini mode不支持流式文本输出,只能全部输出结果。没有打字机效果哦~

not ready, google currently doesn't have streaming mode in their RESTful API I think

@H0llyW00dzZ
Copy link
Contributor

image

image

@Issues-translate-bot
Copy link

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


image

image

@Kosette
Copy link
Contributor

Kosette commented Dec 28, 2023

not ready, google currently doesn't have streaming mode in their RESTful API I think

Streaming response is ready. But i haven't check it further. https://ai.google.dev/api/rest/v1beta/models/streamGenerateContent

@H0llyW00dzZ
Copy link
Contributor

not ready, google currently doesn't have streaming mode in their RESTful API I think

Streaming response is ready. But i haven't check it further. https://ai.google.dev/api/rest/v1beta/models/streamGenerateContent

it's still json

image

image

@Kosette
Copy link
Contributor

Kosette commented Dec 28, 2023

use a longer prompt like "write a story about time travelling.", it'll tell the difference.

@fredliang44 fredliang44 changed the title [Bug] Gemini Pro模型不支持流输出 [Feature] Gemini Pro模型不支持流输出 Dec 28, 2023
@fredliang44
Copy link
Collaborator

Streaming support is available in PR #3688. Please create an individual issue if you encounter any problems.

@lloydzhou
Copy link
Contributor

https://github.com/google-gemini/cookbook/blob/main/quickstarts/rest/Streaming_REST.ipynb

image

add alt=sse in query_string, will get response with content type: text/event-stream

@lloydzhou lloydzhou reopened this Jul 1, 2024
@lloydzhou lloydzhou added the planned planned feature, will support in the future label Jul 1, 2024
lloydzhou added a commit to ConnectAI-E/ChatGPT-Next-Web that referenced this issue Jul 1, 2024
lloydzhou added a commit that referenced this issue Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
planned planned feature, will support in the future
Projects
None yet
Development

No branches or pull requests

6 participants