fix: use proper count tokens endpoint

This commit is contained in:
Stevan Freeborn
2025-01-08 20:39:16 -06:00
parent 9548754d6c
commit 5e247a3c3a
+1 -1
View File
@@ -71,7 +71,7 @@ public class AnthropicApiClient : IAnthropicApiClient
private const string BaseUrl = "https://api.anthropic.com/v1/"; private const string BaseUrl = "https://api.anthropic.com/v1/";
private const string ApiKeyHeader = "x-api-key"; private const string ApiKeyHeader = "x-api-key";
private const string MessagesEndpoint = "messages"; private const string MessagesEndpoint = "messages";
private string CountTokensEndpoint => $"{MessagesEndpoint}/count-tokens"; private string CountTokensEndpoint => $"{MessagesEndpoint}/count_tokens";
private string MessageBatchesEndpoint => $"{MessagesEndpoint}/batches"; private string MessageBatchesEndpoint => $"{MessagesEndpoint}/batches";
private const string ModelsEndpoint = "models"; private const string ModelsEndpoint = "models";
private const string JsonContentType = "application/json"; private const string JsonContentType = "application/json";