Skip to content

Commit

Permalink
Use correct ModelName default
Browse files Browse the repository at this point in the history
`openAIChat.generate` needs to use the given `openAIChat`'s model as the default, not a static `gpt-4o-mini"`.

Fixes #80.
  • Loading branch information
ccreutzi committed Sep 10, 2024
1 parent 19effe4 commit cc43556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openAIChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
arguments
this (1,1) openAIChat
messages {mustBeValidMsgs}
nvp.ModelName (1,1) string {mustBeModel} = "gpt-4o-mini"
nvp.ModelName (1,1) string {mustBeModel} = this.ModelName
nvp.Temperature {llms.utils.mustBeValidTemperature} = this.Temperature
nvp.TopP {llms.utils.mustBeValidProbability} = this.TopP
nvp.StopSequences {llms.utils.mustBeValidStop} = this.StopSequences
Expand Down

0 comments on commit cc43556

Please sign in to comment.