matlab-deep-learning / llms-with-matlab

Connect MATLAB to LLM APIs, including OpenAI® Chat Completions, Azure® OpenAI Services, and Ollama™
Other
97 stars 21 forks source link

openAIChat function errors when stopSequences is a character array #61

Closed MiriamScharnke closed 1 month ago

MiriamScharnke commented 1 month ago

openAIChat checks whether stopSequences has the required number of elements (<=4) by counting the elements of stopSequences. If stopSequences is a character array, such as 'hello', then the function errors.