Skip to content

Commit cc43556

Browse files
committed
Use correct ModelName default
`openAIChat.generate` needs to use the given `openAIChat`'s model as the default, not a static `gpt-4o-mini"`. Fixes #80.
1 parent 19effe4 commit cc43556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openAIChat.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
arguments
210210
this (1,1) openAIChat
211211
messages {mustBeValidMsgs}
212-
nvp.ModelName (1,1) string {mustBeModel} = "gpt-4o-mini"
212+
nvp.ModelName (1,1) string {mustBeModel} = this.ModelName
213213
nvp.Temperature {llms.utils.mustBeValidTemperature} = this.Temperature
214214
nvp.TopP {llms.utils.mustBeValidProbability} = this.TopP
215215
nvp.StopSequences {llms.utils.mustBeValidStop} = this.StopSequences

0 commit comments

Comments
 (0)