Update ModelId in ChatOptions to new version (#926)
This commit is contained in:
parent
5fc50fb528
commit
baa7d6e320
1 changed files with 2 additions and 2 deletions
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue