You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Sending a media file to an Anthropic model and retrieving the response
136
-
Invoke-AnthropicModel -Message 'What can you tell me about this picture?' -ModelID 'anthropic.claude-3-5-sonnet-20241022-v2:0' -MediaPath 'C:\images\tanagra.jpg' -Credential $awsCredential -Region 'us-west-2'
136
+
Invoke-AnthropicModel -Message 'What can you tell me about this picture?' -ModelID 'anthropic.claude-sonnet-4-20250514-v1:0' -MediaPath 'C:\images\tanagra.jpg' -Credential $awsCredential -Region 'us-west-2'
SystemPrompt = 'You are an expert on all things Star Trek, having studied the show for decades. You often win Star Trek Trivia contests and enjoy sharing your vast knowledge of Star Trek with others.'
136
136
Temperature = 1
137
137
StopSequences = 'Picard'
@@ -152,7 +152,7 @@ Stop sequences are provided to stop the model from generating more text when it
152
152
```powershell
153
153
$invokeAnthropicModelSplat = @{
154
154
Message = 'Can you name all of the Star Fleet captains featured in the various shows over the years?'
SystemPrompt = 'You are an expert on all things Star Trek, having studied the show for decades. You often win Star Trek Trivia contests and enjoy sharing your vast knowledge of Star Trek with others.'
157
157
Thinking = $true
158
158
ThinkingBudgetTokens = 2000
@@ -184,7 +184,7 @@ Reference the pwshBedrock documentation for more information on the custom conve
184
184
```powershell
185
185
$invokeAnthropicModelSplat = @{
186
186
Message = 'Can you name all of the Star Fleet captains featured in the various shows over the years?'
SystemPrompt = 'You are an expert on all things Star Trek, having studied the show for decades. You often win Star Trek Trivia contests and enjoy sharing your vast knowledge of Star Trek with others.'
189
189
Tools = $starTrekTriviaFunctionTool
190
190
ToolChoice = 'auto'
@@ -206,7 +206,7 @@ The tool is a function that provides Star Trek trivia information.
# Sending a media file to an Anthropic model and retrieving the response
116
-
Invoke-AnthropicModel -Message 'What can you tell me about this picture?' -ModelID 'anthropic.claude-3-5-sonnet-20241022-v2:0' -MediaPath 'C:\images\tanagra.jpg' -Credential $awsCredential -Region 'us-west-2'
116
+
Invoke-AnthropicModel -Message 'What can you tell me about this picture?' -ModelID 'anthropic.claude-sonnet-4-20250514-v1:0' -MediaPath 'C:\images\tanagra.jpg' -Credential $awsCredential -Region 'us-west-2'
Copy file name to clipboardExpand all lines: src/Tests/Integration/Anthropic.Tests.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ InModuleScope 'pwshBedrock' {
77
77
Write-Verbose-Message $eval.content.text
78
78
} #it
79
79
80
-
It 'should return an object with thinking and reasoning when provided a standard message for <_.ModelID>'-Foreach ($script:anthropicModelInfo|Where-Object { $_.ModelID-eq'anthropic.claude-3-7-sonnet-20250219-v1:0' }) {
80
+
It 'should return an object with thinking and reasoning when provided a standard message for <_.ModelID>'-Foreach ($script:anthropicModelInfo|Where-Object { $_.ModelID-eq'anthropic.claude-3-7-sonnet-20250219-v1:0'-or$_.ModelID-like'anthropic.claude-*-4*'}) {
0 commit comments