fix: playground error message field
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
background-color: var(--color-logs-bg);
|
background-color: var(--color-logs-bg);
|
||||||
border-radius: var(--border-radius-mini);
|
border-radius: var(--border-radius-mini);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
font-family: "monospace,Menlo,Courier,'Courier New',Consolas,Monaco, 'Liberation Mono'";
|
font-family: monospace, Menlo, Courier, 'Courier New', Consolas, Monaco,
|
||||||
|
'Liberation Mono' !important;
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
|||||||
@@ -188,7 +188,8 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
|
|||||||
if (result?.error) {
|
if (result?.error) {
|
||||||
setTokenResult({
|
setTokenResult({
|
||||||
error: true,
|
error: true,
|
||||||
errorMessage: result?.data?.error?.message
|
errorMessage:
|
||||||
|
result?.data?.error?.message || result?.data?.message || ''
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -188,7 +188,8 @@ const ModelItem: React.FC<ModelItemProps> = forwardRef(
|
|||||||
if (result?.error) {
|
if (result?.error) {
|
||||||
setTokenResult({
|
setTokenResult({
|
||||||
error: true,
|
error: true,
|
||||||
errorMessage: result?.data?.error?.message
|
errorMessage:
|
||||||
|
result?.data?.error?.message || result?.data?.message || ''
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
.title {
|
.title {
|
||||||
max-width: min(100%, 180px);
|
max-width: min(100%, 180px);
|
||||||
min-width: 60px;
|
min-width: min(120px, 32%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user