diff --git a/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx b/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx index c74836b..2139f11 100644 Binary files a/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx and b/examples/ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode.mlx differ diff --git a/openAIChat.m b/openAIChat.m index 23b4add..c0d045e 100644 --- a/openAIChat.m +++ b/openAIChat.m @@ -205,7 +205,7 @@ messagesStruct = messages.Messages; end - llms.openai.validateMessageSupported(messagesStruct{end}, model); + llms.openai.validateMessageSupported(messagesStruct{end}, this.ModelName); if ~isempty(this.SystemPrompt) messagesStruct = horzcat(this.SystemPrompt, messagesStruct);