chore: openai api error message
This commit is contained in:
@@ -187,7 +187,7 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
if (result?.error) {
|
||||
setTokenResult({
|
||||
error: true,
|
||||
errorMessage: result?.data?.message
|
||||
errorMessage: result?.data?.error?.message
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ const ModelItem: React.FC<ModelItemProps> = forwardRef(
|
||||
if (result?.error) {
|
||||
setTokenResult({
|
||||
error: true,
|
||||
errorMessage: result?.data?.message
|
||||
errorMessage: result?.data?.error?.message
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user