From e45b6b1cf02f43d2da1ddf073febdcddc99a3326 Mon Sep 17 00:00:00 2001 From: Christopher Creutzig <89011131+ccreutzi@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:11:55 +0200 Subject: [PATCH] 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. --- openAIChat.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openAIChat.m b/openAIChat.m index 89cf932..6c07c6f 100644 --- a/openAIChat.m +++ b/openAIChat.m @@ -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