Update ModelId in ChatOptions to new version (#926)

This commit is contained in:
Peder Holdgaard Pedersen 2025-11-06 19:58:01 +01:00 • committed by GitHub
commit baa7d6e320
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ using var anthropicClient = new AnthropicClient(new APIAuthentication(builder.Co
var options = new ChatOptions var options = new ChatOptions
{ {
MaxOutputTokens = 1000, MaxOutputTokens = 1000,
ModelId = "claude-3-5-sonnet-20241022", ModelId = "claude-haiku-4-5-20251001",
Tools = [.. tools] Tools = [.. tools]
}; };
@ -121,4 +121,4 @@ static string GetCurrentSourceDirectory([CallerFilePath] string? currentFile = n
{ {
Debug.Assert(!string.IsNullOrWhiteSpace(currentFile)); Debug.Assert(!string.IsNullOrWhiteSpace(currentFile));
return Path.GetDirectoryName(currentFile) ?? throw new InvalidOperationException("Unable to determine source directory."); return Path.GetDirectoryName(currentFile) ?? throw new InvalidOperationException("Unable to determine source directory.");
} }