Skip to content

Commit bb104df

Browse files
Merge pull request #3 from techthoughts2/Enhancements
Enhancements - Jan 2025 update
2 parents 5f43721 + fc5e87b commit bb104df

File tree

71 files changed

+5386
-383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+5386
-383
lines changed

.vscode/settings.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"powershell.codeFormatting.preset": "Stroustrup",
2020
"cSpell.words": [
2121
"Allman",
22+
"apac",
2223
"BDRR",
2324
"Braunfels",
2425
"Catesta",
@@ -45,6 +46,7 @@
4546
"notlike",
4647
"OTBS",
4748
"outpainting",
49+
"pwsh",
4850
"shouldprocess",
4951
"Starfleet",
5052
"starships",

README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Documentation for pwshBedrock is available at: [https://www.pwshbedrock.dev](htt
5252
- PowerShell 5.1 or later
5353
- AWS account with access to Amazon Bedrock
5454
- AWS credentials with appropriate `bedrock:InvokeModel` permission
55-
- You must [manage and add model acesss](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) through one-time request model access action. *Note: this must be done for each model you plan to interact with.*
55+
- You must [manage and add model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) through one-time request model access action. *Note: this must be done for each model you plan to interact with.*
5656

5757
### Installation
5858

@@ -85,12 +85,12 @@ Invoke-AI21LabsJambaModel -Message 'Explain zero-point energy.' -ModelID 'ai21.j
8585
#------------------------------------------------------------------------------------------------
8686
```
8787

88-
##### Amazon Titan Image Generator G2 model
88+
##### Amazon Image Generator
8989

9090
```powershell
9191
#------------------------------------------------------------------------------------------------
9292
# Generates an image and saves the image to the C:\temp folder.
93-
Invoke-AmazonImageModel -ImagesSavePath 'C:\temp' -ImagePrompt 'Create a starship emerging from a nebula.' -ModelID 'amazon.titan-image-generator-v2:0' -Credential $awsCredential -Region 'us-west-2'
93+
Invoke-AmazonImageModel -ImagesSavePath 'C:\temp' -ImagePrompt 'Create a starship emerging from a nebula.' -ModelID 'amazon.nova-canvas-v1:0' -Credential $awsCredential -Region 'us-east-1'
9494
#------------------------------------------------------------------------------------------------
9595
```
9696

@@ -103,6 +103,15 @@ Invoke-AmazonTextModel -Message 'Explain zero-point energy.' -ModelID amazon.tit
103103
#------------------------------------------------------------------------------------------------
104104
```
105105

106+
##### Amazon Nova Text models
107+
108+
```powershell
109+
#------------------------------------------------------------------------------------------------
110+
# Sends a text message to the on-demand Amazon Nova model in the specified AWS region and returns the response.
111+
Invoke-AmazonNovaTextModel -Message 'Explain zero-point energy.' -ModelID 'amazon.nova-pro-v1:0' -Credential $awsCredential -Region 'us-east-1'
112+
#------------------------------------------------------------------------------------------------
113+
```
114+
106115
##### Anthropic Models
107116

108117
```powershell
@@ -140,7 +149,7 @@ Invoke-CohereCommandRModel -Message 'Explain zero-point energy.' -ModelID 'coher
140149
# Sends a text message to the on-demand Meta model in the specified AWS region and returns the response.
141150
Invoke-MetaModel -Message 'Explain zero-point energy.' -ModelID 'meta.llama3-8b-instruct-v1:0' -Credential $awsCredential -Region 'us-west-2'
142151
#------------------------------------------------------------------------------------------------
143-
# Sending a media file to a Meta model and retriveing the response
152+
# Sending a media file to a Meta model and retrieving the response
144153
Invoke-MetaModel -ImagePrompt 'Describe this image in two sentences.' -ModelID 'meta.llama3-2-11b-instruct-v1:0' -MediaPath 'C:\path\to\image.jpg' -Credential $awsCredential -Region 'us-west-2'
145154
#------------------------------------------------------------------------------------------------
146155
```

actions_bootstrap.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ $modulesToInstall = New-Object System.Collections.Generic.List[object]
1616
# https://github.com/nightroman/Invoke-Build
1717
[void]$modulesToInstall.Add(([PSCustomObject]@{
1818
ModuleName = 'InvokeBuild'
19-
ModuleVersion = '5.11.3'
19+
ModuleVersion = '5.12.1'
2020
}))
2121
# https://github.com/PowerShell/PSScriptAnalyzer
2222
[void]$modulesToInstall.Add(([PSCustomObject]@{
2323
ModuleName = 'PSScriptAnalyzer'
24-
ModuleVersion = '1.22.0'
24+
ModuleVersion = '1.23.0'
2525
}))
2626
# https://github.com/PowerShell/platyPS
2727
# older version used due to: https://github.com/PowerShell/platyPS/issues/457
@@ -31,11 +31,11 @@ $modulesToInstall = New-Object System.Collections.Generic.List[object]
3131
}))
3232
[void]$modulesToInstall.Add(([PSCustomObject]@{
3333
ModuleName = 'AWS.Tools.Common'
34-
ModuleVersion = '4.1.700'
34+
ModuleVersion = '4.1.729'
3535
}))
3636
[void]$modulesToInstall.Add(([PSCustomObject]@{
3737
ModuleName = 'AWS.Tools.BedrockRuntime'
38-
ModuleVersion = '4.1.700'
38+
ModuleVersion = '4.1.729'
3939
}))
4040
[void]$modulesToInstall.Add(([PSCustomObject]@{
4141
ModuleName = 'Convert'

docs/CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ 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.52.0] - **BREAKING CHANGES**
9+
10+
- Module changes:
11+
- Added two new properties to all model documentation objects:
12+
- `Image` - designates if the model can generate images
13+
- `Video` - designates if the model can generate video
14+
- `Vision` - re-purposed to now designate if the model can see and describe uploaded content
15+
- This required some logic re-work in several functions that were previously using `Vision` to designate image capability
16+
- Added inference profile ID support to all models IAW [Supported cross-region inference profiles](https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html)
17+
- pwshBedrock will now properly format the inference profile ID for all models that support which enables the ability to make Bedrock calls to other regions
18+
- `Reset-ModelContext` - fixed issue where certain models were missing from validation.
19+
- Amazon
20+
- `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+
- `Invoke-AmazonImageModel`
22+
- added support for new Nova image model: `amazon.nova-canvas-v1:0`
23+
- fixed bug where files would not always save to drive
24+
- `CfgScale` parameter maximum adjusted from 10 to 9.9
25+
- Meta
26+
- Removed `meta.llama2-13b-chat-v1` and `meta.llama2-70b-chat-v1` from all functions as Bedrock has EOL these two models. - ***Breaking Change***
27+
- Updated `Invoke-MetaModel` to support new model: `meta.llama3-3-70b-instruct-v1:0`
28+
- stability.ai
29+
- Updated `Invoke-StabilityAIImageModel` to support new model: `stability.sd3-5-large-v1:0`
30+
- Updated pricing for all models
31+
- Build changes:
32+
- Updated bootstrap file to latest versions of modules
33+
834
## [0.33.0] - **BREAKING CHANGES**
935

1036
- Module changes:

docs/Invoke-AmazonImageModel.md

+2
Original file line numberDiff line numberDiff line change
@@ -883,4 +883,6 @@ Image generation and variation seem to work well.
883883
884884
[https://docs.aws.amazon.com/bedrock/latest/userguide/titan-image-models.html](https://docs.aws.amazon.com/bedrock/latest/userguide/titan-image-models.html)
885885
886+
[https://docs.aws.amazon.com/nova/latest/userguide/image-gen-req-resp-structure.html](https://docs.aws.amazon.com/nova/latest/userguide/image-gen-req-resp-structure.html)
887+
886888
[https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-titan-image.html](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-titan-image.html)

0 commit comments

Comments
 (0)