-
Notifications
You must be signed in to change notification settings - Fork 341
Protocol models for ChatClient #778
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
base: main
Are you sure you want to change the base?
Protocol models for ChatClient #778
Conversation
api/OpenAI.net8.0.cs
Outdated
| public ClientPipeline Pipeline { get; } | ||
| public virtual ClientResult<ChatCompletion> CompleteChat(params ChatMessage[] messages); | ||
| [Experimental("OPENAI001")] | ||
| public virtual ClientResult<ChatCompletionResult> CompleteChat(CreateChatCompletionOptions options, CancellationToken cancellationToken = default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I pass in a RequestOptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use the protocol method overload to do that like this:
ChatCompletionResult response = (ChatCompletionResult)await client.CompleteChatAsync(options, new RequestOptions());The CreateChatCompletionOptions would be implicitly cast to BinaryContent.
No description provided.