We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No response
It seems like when using OpenAI JavaScript SDK, this project won't work as expected.
Code:
import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'test-api-key', baseURL: 'http://localhost:8000/v1/' }); async function completions() { const stream = await client.chat.completions.create({stream: true, messages: [{role:'user', content: 'hello'}]}); for await (const chunk of stream) { console.log(chunk.choices[0].delta.content); } console.log("Finished Response"); } completions(); // Console output: Finished Response
And although the engine got response normally, the receiver doesn't received the chunk output.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Contact Details(optional)
No response
What is the issue you are having?
It seems like when using OpenAI JavaScript SDK, this project won't work as expected.
Code:
And although the engine got response normally, the receiver doesn't received the chunk output.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: