Contribute to travis-the-dragon/async-stream-openai-st development by creating an account on GitHub.
packages/ai-openai/src/node/openai-streaming-iterator.spec.ts Show resolved sdirix approved these changes Feb 14, 2025 View reviewed changes View details colin-grant-work merged commit b0f91ae into eclipse-theia:master Feb 14, 2025 10 of 11 checks passed colin-grant-work deleted the bug...
I am trying to get streaming response for chat completion using AsyncAzureOpenAI with stream=True, but I'm getting a null object output. I am using the following code: import os import openai import asyncio from openai import AzureOpenAI,…
Is your feature request related to a problem? Please describe. Simple use case: let task = Task { for try await result in openAI.chatsStream(query: query) { print(result) } } During the streaming, if I cancel the task manually (e.g. The ...
def create_chatgpt_openai_object( delta: Dict[str, str], finish_reason: Optional[Any] = None ): return OpenAIObject.construct_from( {"choices": [{"delta": delta, "finish_reason": finish_reason}]} ) class StreamOpenAIResponseTestCase(BaseModel): openai_objects: List[OpenAIObject] expected...
Describe the bug According to How_to_stream_completions response = openai.ChatCompletion.create( model='gpt-3.5-turbo', messages=[ {'role': 'user', 'content': "What's 1+1? Answer in one word."} ], temperature=0, stream=True ) for chunk i...
mssfang deleted the OpenAI-FixAsyncSample-GetChatCompletionsStream branch July 10, 2024 23:38 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Reviewers srnagar brandom-msft jpalvarezl Assignees mssfang Labels Client OpenAI Projects None ...
Description "openai": "4.11.0" "ai": "2.2.13", Passing openai response to OpenAIStream causes TS type error. Code example import { OpenAIStream, StreamingTextResponse } from 'ai'; import OpenAI from 'openai'; const openai = new OpenAI({ ...
kisamoto added a commit to cognos-io/openai-node that referenced this pull request Mar 21, 2024 Merge branch 'master' into cognos/fork … Verified 73b6822 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Reviewers No reviews Assignees ...