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

Iterator not yielding any text or getting empty response from create_partial #1093

Open
1 of 7 tasks
Faisal25DEC opened this issue Oct 17, 2024 · 1 comment
Open
1 of 7 tasks

Comments

@Faisal25DEC
Copy link

Faisal25DEC commented Oct 17, 2024

  • [ ✅] This is actually a bug report.
  • I am not getting good LLM Results
  • I have tried asking for help in the community on discord or discussions and have not received a response.
  • I have tried searching the documentation and have not found an answer.

What Model are you using?

  • gpt-3.5-turbo
  • gpt-4-turbo
  • gpt-4
  • Other ('gpt-4o-2024-08-06')

Describe the bug
I am using chat_completion.create_partial method to stream the Partial Object. However results aren't getting yielded. It's not yielding any response however the iterator is getting triggered

image
The above image is the condition i check before entering the loop. Could it possibly be the case that Partial Object is not the instance of Response model.

To Reproduce
I can't outline exact steps as the occurence pattern is unknown to me till now

Expected behavior
The iterator iterates on the result to yield the attributes

@ivanbelenky
Copy link
Contributor

ivanbelenky commented Oct 17, 2024

Can you paste here a clearer snippet. It is unclear what response object is. Thanks in advance.

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

2 participants