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

azure did not support streaming? #765

Open
FunkyYang opened this issue Jun 6, 2024 · 2 comments
Open

azure did not support streaming? #765

FunkyYang opened this issue Jun 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@FunkyYang
Copy link

FunkyYang commented Jun 6, 2024

I use this sdk to connect with azure chat gpt .and set stream true to request.but the result seems a same one createdTime.
I wonder why?
image

@FunkyYang FunkyYang added the bug Something isn't working label Jun 6, 2024
@FunkyYang
Copy link
Author

streaming seems slowly

@chrbsg
Copy link
Contributor

chrbsg commented Oct 7, 2024

I don't think this is a bug. The "created" field is the same for each streamed partial result in Azure, but it's also the same when using OpenAI's servers. The API docs describe "created" as:

created
integer

The Unix timestamp (in seconds) of when the chat completion was created.

The multiple parts of a streamed response come from a single chat completion, which is probably why the "created" field is always the same. It's a timestamp of the completion as a whole, not a timestamp of individual streamed parts. This field is created by data from the remote server, not go-openai, so either way this isn't a go-openai bug.

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

2 participants