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
async 支持吗???completion = client.chat.completions.create( model=model, messages=messages, temperature=temperature, max_tokens=max_tokens, stream=True ) assistant_response = "" for chunk in completion: assistant_response += chunk.choices[0].delta.content history[-1][-1] = assistant_response yield history,chunk_show,支持异步流式调用吗,谢谢
The text was updated successfully, but these errors were encountered:
您好,目前这个框架没有适配异步调用,因为异步涉及的改动会比较多...
Sorry, something went wrong.
No branches or pull requests
async 支持吗???completion = client.chat.completions.create(
model=model,
messages=messages,
temperature=temperature,
max_tokens=max_tokens,
stream=True
)
assistant_response = ""
for chunk in completion:
assistant_response += chunk.choices[0].delta.content
history[-1][-1] = assistant_response
yield history,chunk_show,支持异步流式调用吗,谢谢
The text was updated successfully, but these errors were encountered: