Skip to content

Commit 83e98d8

Browse files
committed
removed EOL meta models
1 parent 3e71945 commit 83e98d8

24 files changed

+61
-229
lines changed

docs/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.2.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.43.0]
8+
## [0.48.0] - **BREAKING CHANGES**
99

1010
- Module changes:
1111
- Added two new properties to all model documentation objects:
@@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- `Reset-ModelContext` - fixed issue where certain models were missing from validation.
1919
- Amazon
2020
- `Invoke-AmazonNovaTextModel` - added support for new Nova Text models: `amazon.nova-pro-v1:0`, `amazon.nova-lite-v1:0`, `amazon.nova-micro-v1:0`
21+
- Meta
22+
- Removed `meta.llama2-13b-chat-v1` and `meta.llama2-70b-chat-v1` from all functions as Bedrock has EOL these two models. - ***Breaking Change***
2123

2224
## [0.33.0] - **BREAKING CHANGES**
2325

docs/Invoke-MetaModel.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ input and output tokens and adds the estimate to the models tally information.
5050

5151
### EXAMPLE 1
5252
```
53-
Invoke-MetaModel -Message 'Explain zero-point energy.' -ModelID 'meta.llama2-13b-chat-v1' -Credential $awsCredential -Region 'us-west-2'
53+
Invoke-MetaModel -Message 'Explain zero-point energy.' -ModelID 'meta.llama3-2-90b-instruct-v1:0' -Credential $awsCredential -Region 'us-west-2'
5454
```
5555

5656
Sends a text message to the on-demand Meta model in the specified AWS region and returns the response.
5757

5858
### EXAMPLE 2
5959
```
60-
Invoke-MetaModel -Message 'Explain zero-point energy.' -ModelID 'meta.llama2-13b-chat-v1' -Credential $awsCredential -Region 'us-west-2' -ReturnFullObject
60+
Invoke-MetaModel -Message 'Explain zero-point energy.' -ModelID 'meta.llama3-2-90b-instruct-v1:0' -Credential $awsCredential -Region 'us-west-2' -ReturnFullObject
6161
```
6262

6363
Sends a text message to the on-demand Meta model in the specified AWS region and returns the full response object.
@@ -73,7 +73,7 @@ Sends a text message to the on-demand Meta model in the specified AWS region and
7373
```
7474
$invokeMetaModelSplat = @{
7575
Message = 'Explain zero-point energy.'
76-
ModelID = 'meta.llama2-13b-chat-v1'
76+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
7777
MaxTokens = 2000
7878
SystemPrompt = 'You are a deep thinking model with a galactic perspective'
7979
Credential = $awsCredential

docs/pwshBedrock.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Module Name: pwshBedrock
33
Module Guid: b4f9e4dc-0229-44ef-99a1-08be4c5e81f2
44
Download Help Link: NA
5-
Help Version: 0.43.0
5+
Help Version: 0.48.0
66
Locale: en-US
77
---
88

src/Tests/Integration/ConverseAPI.Tests.ps1

-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ InModuleScope 'pwshBedrock' {
3535
# 'cohere.command-light-text-v14', # *note: not supported by Converse API
3636
'cohere.command-r-v1:0',
3737
'cohere.command-r-plus-v1:0',
38-
'meta.llama2-13b-chat-v1',
39-
'meta.llama2-70b-chat-v1',
4038
'meta.llama3-70b-instruct-v1:0',
4139
'meta.llama3-8b-instruct-v1:0',
4240
'meta.llama3-1-8b-instruct-v1:0',

src/Tests/Integration/SupportedModels-Checks.Tests.ps1

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ Describe 'Supported Models Checks' -Tag Integration {
3232
'cohere.command-light-text-v14'
3333
'cohere.command-r-v1:0'
3434
'cohere.command-r-plus-v1:0'
35-
'meta.llama2-13b-chat-v1'
36-
'meta.llama2-70b-chat-v1'
3735
'meta.llama3-70b-instruct-v1:0'
3836
'meta.llama3-8b-instruct-v1:0'
3937
'meta.llama3-1-8b-instruct-v1:0'

src/Tests/Unit/Private/Format-MetaTextMessage.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ InModuleScope 'pwshBedrock' {
3030
} #it
3131

3232
It 'should throw if an unsupported role is provided' {
33-
{ Format-MetaTextMessage -Role 'unsupported.role' -Message 'Live long and prosper!' -ModelID 'meta.llama2-13b-chat-v1' } | Should -Throw
33+
{ Format-MetaTextMessage -Role 'unsupported.role' -Message 'Live long and prosper!' -ModelID 'meta.llama3-2-90b-instruct-v1:0' } | Should -Throw
3434
} #it
3535

3636
} #context_Error

src/Tests/Unit/Public/Get-ModelContext.Tests.ps1

-8
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,6 @@ InModuleScope 'pwshBedrock' {
165165
content = 'test'
166166
}
167167
}
168-
[PSCustomObject]@{
169-
ModelId = 'meta.llama2-13b-chat-v1'
170-
Context = 'test'
171-
}
172-
[PSCustomObject]@{
173-
ModelId = 'meta.llama2-70b-chat-v1'
174-
Context = 'test'
175-
}
176168
[PSCustomObject]@{
177169
ModelId = 'meta.llama3-70b-instruct-v1:0'
178170
Context = 'test'

src/Tests/Unit/Public/Get-ModelTally.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ InModuleScope 'pwshBedrock' {
4343

4444
It 'should get the tally for all models' {
4545
$eval = Get-ModelTally -AllModels
46-
$eval.Count | Should -BeExactly 46
46+
$eval.Count | Should -BeExactly 44
4747
foreach ($model in $eval) {
4848
if ($null -ne $model.ImageCount) {
4949
$model.ImageCount | Should -BeExactly 0

src/Tests/Unit/Public/Invoke-ConverseAPI.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ InModuleScope 'pwshBedrock' {
219219
$invokeConverseAPISplat = @{
220220
Message = 'Make it so.'
221221
MediaPath = 'C:\Users\user\Documents\image.jpg'
222-
ModelID = 'meta.llama2-13b-chat-v1'
222+
ModelID = 'meta.llama3-2-1b-instruct-v1:0'
223223
ProfileName = 'default'
224224
Region = 'us-west-2'
225225
}

src/Tests/Unit/Public/Invoke-MetaModel.Tests.ps1

+23-23
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ InModuleScope 'pwshBedrock' {
2222
BeforeEach {
2323
$Global:pwshBedrockModelContext = @(
2424
[PSCustomObject]@{
25-
ModelId = 'meta.llama2-13b-chat-v1'
25+
ModelId = 'meta.llama3-2-90b-instruct-v1:0'
2626
Context = 'test'
2727
}
2828
)
@@ -141,7 +141,7 @@ Who is the best captain in Star Trek?[/INST]
141141
{
142142
$invokeMetaModelSplat = @{
143143
Message = 'Lookup current trek trivia information using the Star Trek trivia tool.'
144-
ModelID = 'meta.llama2-13b-chat-v1'
144+
ModelID = 'meta.llama3-8b-instruct-v1:0'
145145
Tools = $standardTools
146146
ProfileName = 'default'
147147
Region = 'us-west-2'
@@ -154,7 +154,7 @@ Who is the best captain in Star Trek?[/INST]
154154
{
155155
$invokeMetaModelSplat = @{
156156
ToolsResults = $toolResults
157-
ModelID = 'meta.llama2-13b-chat-v1'
157+
ModelID = 'meta.llama3-8b-instruct-v1:0'
158158
ProfileName = 'default'
159159
Region = 'us-west-2'
160160
}
@@ -207,7 +207,7 @@ Who is the best captain in Star Trek?[/INST]
207207
$invokeMetaModelSplat = @{
208208
ImagePrompt = 'Describe this image in two sentences.'
209209
MediaPath = 'image'
210-
ModelID = 'meta.llama2-13b-chat-v1'
210+
ModelID = 'meta.llama3-8b-instruct-v1:0'
211211
ProfileName = 'default'
212212
Region = 'us-west-2'
213213
}
@@ -248,7 +248,7 @@ Who is the best captain in Star Trek?[/INST]
248248
{
249249
$invokeMetaModelSplat = @{
250250
Message = 'It is possible to commit no mistakes and still lose. That is not weakness, that is life.'
251-
ModelID = 'meta.llama2-13b-chat-v1'
251+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
252252
ProfileName = 'default'
253253
Region = 'us-west-2'
254254
}
@@ -271,7 +271,7 @@ Who is the best captain in Star Trek?[/INST]
271271
{
272272
$invokeMetaModelSplat = @{
273273
Message = 'The line must be drawn here! This far, no further!'
274-
ModelID = 'meta.llama2-13b-chat-v1'
274+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
275275
AccessKey = 'ak'
276276
SecretKey = 'sk'
277277
Region = 'us-west-2'
@@ -284,15 +284,15 @@ Who is the best captain in Star Trek?[/INST]
284284
It 'should throw if there is an error running Invoke-BDRRModel' {
285285
$Global:pwshBedrockModelContext = @(
286286
[PSCustomObject]@{
287-
ModelId = 'meta.llama2-13b-chat-v1'
287+
ModelId = 'meta.llama3-2-90b-instruct-v1:0'
288288
Context = $customMessage
289289
}
290290
)
291291
Mock -CommandName Invoke-BDRRModel -MockWith { throw 'Error' }
292292
{
293293
$invokeMetaModelSplat = @{
294294
Message = "There is no greater enemy than one's own fears."
295-
ModelID = 'meta.llama2-13b-chat-v1'
295+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
296296
AccessKey = 'ak'
297297
SecretKey = 'sk'
298298
Region = 'us-west-2'
@@ -306,7 +306,7 @@ Who is the best captain in Star Trek?[/INST]
306306
{
307307
$invokeMetaModelSplat = @{
308308
Message = "When a man is convinced he will die tomorrow. He'll probably find a way to make that happen."
309-
ModelID = 'meta.llama2-13b-chat-v1'
309+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
310310
AccessKey = 'ak'
311311
SecretKey = 'sk'
312312
Region = 'us-west-2'
@@ -318,15 +318,15 @@ Who is the best captain in Star Trek?[/INST]
318318
It 'should throw if the memory stream can not be converted' {
319319
$Global:pwshBedrockModelContext = @(
320320
[PSCustomObject]@{
321-
ModelId = 'meta.llama2-13b-chat-v1'
321+
ModelId = 'meta.llama3-2-90b-instruct-v1:0'
322322
Context = 'test'
323323
}
324324
)
325325
Mock -CommandName ConvertFrom-MemoryStreamToString -MockWith { throw 'Error' }
326326
{
327327
$invokeMetaModelSplat = @{
328328
Message = 'Make it so.'
329-
ModelID = 'meta.llama2-13b-chat-v1'
329+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
330330
AccessKey = 'ak'
331331
SecretKey = 'sk'
332332
Region = 'us-west-2'
@@ -338,15 +338,15 @@ Who is the best captain in Star Trek?[/INST]
338338
It 'should remove last message context if the memory stream can not be converted' {
339339
$Global:pwshBedrockModelContext = @(
340340
[PSCustomObject]@{
341-
ModelId = 'meta.llama2-13b-chat-v1'
341+
ModelId = 'meta.llama3-2-90b-instruct-v1:0'
342342
Context = $standardMessage
343343
}
344344
)
345345
Mock -CommandName ConvertFrom-MemoryStreamToString -MockWith { throw 'Error' }
346346
{
347347
$invokeMetaModelSplat = @{
348348
Message = 'Make it so.'
349-
ModelID = 'meta.llama2-13b-chat-v1'
349+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
350350
AccessKey = 'ak'
351351
SecretKey = 'sk'
352352
Region = 'us-west-2'
@@ -370,7 +370,7 @@ Who is the best captain in Star Trek?[/INST]
370370
{
371371
$invokeMetaModelSplat = @{
372372
Message = 'The line must be drawn here! This far, no further!'
373-
ModelID = 'meta.llama2-13b-chat-v1'
373+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
374374
MaxTokens = 100
375375
AccessKey = 'ak'
376376
SecretKey = 'sk'
@@ -388,7 +388,7 @@ Who is the best captain in Star Trek?[/INST]
388388
BeforeEach {
389389
$Global:pwshBedrockModelContext = @(
390390
[PSCustomObject]@{
391-
ModelId = 'meta.llama2-13b-chat-v1'
391+
ModelId = 'meta.llama3-2-90b-instruct-v1:0'
392392
Context = 'test'
393393
}
394394
)
@@ -503,7 +503,7 @@ Who is the best captain in Star Trek?[/INST]
503503
It 'should return the full object if ReturnFullObject is provided' {
504504
$invokeMetaModelSplat = @{
505505
Message = 'With the first link, the chain is forged. The first speech censured, the first thought forbidden, the first freedom denied, chains us all irrevocably.'
506-
ModelID = 'meta.llama2-13b-chat-v1'
506+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
507507
ReturnFullObject = $true
508508
AccessKey = 'ak'
509509
SecretKey = 'sk'
@@ -519,7 +519,7 @@ Who is the best captain in Star Trek?[/INST]
519519
It 'should return a message when all parameters are provided' {
520520
$invokeMetaModelSplat = @{
521521
Message = 'Shaka, when the walls fell.'
522-
ModelID = 'meta.llama2-13b-chat-v1'
522+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
523523
NoContextPersist = $true
524524
SystemPrompt = 'You are a Star Trek trivia expert.'
525525
MaxTokens = 100
@@ -537,7 +537,7 @@ Who is the best captain in Star Trek?[/INST]
537537
It 'should run all expected subcommands' {
538538
$invokeMetaModelSplat = @{
539539
Message = 'Bonjour, mon Capitaine!'
540-
ModelID = 'meta.llama2-13b-chat-v1'
540+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
541541
NoContextPersist = $true
542542
AccessKey = 'ak'
543543
SecretKey = 'sk'
@@ -617,15 +617,15 @@ Who is the best captain in Star Trek?[/INST]
617617
Mock -CommandName Invoke-BDRRModel {
618618
$response
619619
$Region | Should -BeExactly 'us-west-2'
620-
$ModelID | Should -BeExactly 'meta.llama2-13b-chat-v1'
620+
$ModelID | Should -BeExactly 'us.meta.llama3-2-90b-instruct-v1:0'
621621
$AccessKey | Should -BeExactly 'ak'
622622
$SecretKey | Should -BeExactly 'sk'
623623
$ContentType | Should -BeExactly 'application/json'
624624
$Body | Should -BeOfType [byte]
625625
} -Verifiable
626626
$invokeMetaModelSplat = @{
627627
Message = 'Good tea, nice house.'
628-
ModelID = 'meta.llama2-13b-chat-v1'
628+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
629629
AccessKey = 'ak'
630630
SecretKey = 'sk'
631631
Region = 'us-west-2'
@@ -640,7 +640,7 @@ Who is the best captain in Star Trek?[/INST]
640640
Mock -CommandName Invoke-BDRRModel {
641641
$response
642642
$Region | Should -BeExactly 'us-west-2'
643-
$ModelID | Should -BeExactly 'meta.llama2-13b-chat-v1'
643+
$ModelID | Should -BeExactly 'us.meta.llama3-2-90b-instruct-v1:0'
644644
$Credential | Should -Not -BeNullOrEmpty
645645
$EndpointUrl | Should -BeExactly 'string'
646646
$NetworkCredential | Should -Not -BeNullOrEmpty
@@ -650,7 +650,7 @@ Who is the best captain in Star Trek?[/INST]
650650
} -Verifiable
651651
$invokeMetaModelSplat = @{
652652
Message = "My Dear Doctor, they're all true. 'Even the lies?' Especially the lies"
653-
ModelID = 'meta.llama2-13b-chat-v1'
653+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
654654
Credential = $awsCred
655655
EndpointUrl = 'string'
656656
NetworkCredential = $networkCred
@@ -695,7 +695,7 @@ Who is the best captain in Star Trek?[/INST]
695695
} -Verifiable
696696
$invokeMetaModelSplat = @{
697697
Message = 'Fascinating.'
698-
ModelID = 'meta.llama2-13b-chat-v1'
698+
ModelID = 'meta.llama3-2-90b-instruct-v1:0'
699699
NoContextPersist = $true
700700
AccessKey = 'ak'
701701
SecretKey = 'sk'

src/Tests/Unit/Public/Reset-ModelContext.Tests.ps1

-28
Original file line numberDiff line numberDiff line change
@@ -375,34 +375,6 @@ User: "Hi there!
375375
}
376376
)
377377
}
378-
[PSCustomObject]@{
379-
ModelID = 'meta.llama2-13b-chat-v1'
380-
Context = @(
381-
[PSCustomObject]@{
382-
role = 'user'
383-
content = @(
384-
[PSCustomObject]@{
385-
type = 'text'
386-
text = 'Llama2 13b chat context'
387-
}
388-
)
389-
}
390-
)
391-
}
392-
[PSCustomObject]@{
393-
ModelID = 'meta.llama2-70b-chat-v1'
394-
Context = @(
395-
[PSCustomObject]@{
396-
role = 'user'
397-
content = @(
398-
[PSCustomObject]@{
399-
type = 'text'
400-
text = 'Llama2 70b chat context'
401-
}
402-
)
403-
}
404-
)
405-
}
406378
[PSCustomObject]@{
407379
ModelID = 'meta.llama3-8b-instruct-v1:0'
408380
Context = @(

0 commit comments

Comments
 (0)