🐛(openAi.ts): fix incorrect usage of 'typeof' operator for MODEL variable
This commit is contained in:
@@ -54,7 +54,7 @@ if (
|
|||||||
|
|
||||||
const MODEL = config?.OCO_MODEL || 'gpt-3.5-turbo';
|
const MODEL = config?.OCO_MODEL || 'gpt-3.5-turbo';
|
||||||
if (provider === 'openai' &&
|
if (provider === 'openai' &&
|
||||||
MODEL.typeof !== 'string' &&
|
typeof MODEL !== 'string' &&
|
||||||
command !== 'config' &&
|
command !== 'config' &&
|
||||||
mode !== CONFIG_MODES.set) {
|
mode !== CONFIG_MODES.set) {
|
||||||
outro(
|
outro(
|
||||||
|
|||||||
Reference in New Issue
Block a user