Class AnthropicClient
public sealed class AnthropicClient : IDisposable
- Inheritance
-
AnthropicClient
- Implements
- Inherited Members
Constructors
AnthropicClient(HttpClient, string, string)
public AnthropicClient(HttpClient httpClient, string baseUrl, string apiKey)
Parameters
httpClient
HttpClientbaseUrl
stringapiKey
string
Methods
CreateChatCompletionsAsync(ChatCompletionRequest, CancellationToken)
public Task<ChatCompletionResponse> CreateChatCompletionsAsync(ChatCompletionRequest chatCompletionRequest, CancellationToken cancellationToken)
Parameters
chatCompletionRequest
ChatCompletionRequestcancellationToken
CancellationToken
Returns
Dispose()
public void Dispose()
StreamingChatCompletionsAsync(ChatCompletionRequest, CancellationToken)
public IAsyncEnumerable<ChatCompletionResponse> StreamingChatCompletionsAsync(ChatCompletionRequest chatCompletionRequest, CancellationToken cancellationToken)
Parameters
chatCompletionRequest
ChatCompletionRequestcancellationToken
CancellationToken