package
This commit is contained in:
+2
-2
@@ -48656,12 +48656,12 @@ async function simpleInference(request) {
|
|||||||
return modelResponse || null;
|
return modelResponse || null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
coreExports.error('Unexpected response format from OpenAI API');
|
coreExports.error(`Unexpected response format from API: ${JSON.stringify(response)}`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
coreExports.error(`OpenAI API error: ${error}`);
|
coreExports.error(`API error: ${error}`);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user