Skip to content

Commit

Permalink
Merge pull request #19 from dfinke/fix-model-name
Browse files Browse the repository at this point in the history
Fix model name
  • Loading branch information
dfinke authored Jul 24, 2024
2 parents b926c25 + 110be30 commit ffd52a0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PSAI.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'PSAI.psm1'
ModuleVersion = '0.2.4'
ModuleVersion = '0.2.5'
GUID = '68662d19-a8f1-484f-b1b7-3bf0e8a436df'
Author = 'Douglas Finke'
CompanyName = 'Doug Finke'
Expand Down
2 changes: 1 addition & 1 deletion Public/Invoke-OAIChat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Invoke-OAIChat {
[Parameter(ValueFromPipeline)]
$UserInput,
$Instructions,
$model = 'gpt-4o-omni'
$model = 'gpt-4o-mini'
)

Begin {
Expand Down
4 changes: 2 additions & 2 deletions Public/Invoke-OAIChatCompletion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Specifies the list of messages in the conversation. Each message should have a 'role' (either 'system', 'user', or 'assistant') and 'content' (the content of the message).
.PARAMETER Model
Specifies the model to use for generating completions. Default is 'gpt-4o-omni'.
Specifies the model to use for generating completions. Default is 'gpt-4o-mini'.
.PARAMETER FrequencyPenalty
Specifies the frequency penalty to apply. Higher values will make the model avoid repeating the same completions. Default is not set.
Expand Down Expand Up @@ -85,7 +85,7 @@ function Invoke-OAIChatCompletion {
param(
[Parameter(Mandatory)]
$Messages,
$Model = 'gpt-4o-omni',
$Model = 'gpt-4o-mini',
$FrequencyPenalty,
$LogitBias,
$Logprobs,
Expand Down
2 changes: 1 addition & 1 deletion Public/New-OAIAssistant.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function New-OAIAssistant {
$Description,
$Tools,
$ToolResources,
$Model = 'gpt-4o-omni',
$Model = 'gpt-4o-mini',
$Metadata,
[ValidateScript({ $_ -ge 0 -and $_ -le 2 })]
$Temperature = $null,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Invoke-OAIBeta-InvokeRestMethod-OpenAI.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Describe 'Test Invoke-OAIBeta InvokeRestMethod OpenAI Params' -Tag Invoke-OAIBet
Body = @{
instructions = $null
name = $null
model = "gpt-4o-omni"
model = "gpt-4o-mini"
}

Headers = $expectedHeaders
Expand Down
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## 0.2.5

- Fix $model to 'gpt-4o-mini'

## v0.2.4

- Update default model to 'gpt-4o-omni' in Invoke-OAIChat.ps1, Invoke-OAIChatCompletion.ps1, and New-OAIAssistant.ps1
- Update default model to 'gpt-4o-mini' in Invoke-OAIChat.ps1, Invoke-OAIChatCompletion.ps1, and New-OAIAssistant.ps1

## v0.2.3

Expand Down

0 comments on commit ffd52a0

Please sign in to comment.