Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/ModelModal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yokowu/modelkit-ui",
"version": "0.4.1",
"version": "0.4.2",
"description": "A reusable AI model configuration modal component for React applications",
"private": false,
"type": "module",
Expand Down
5 changes: 2 additions & 3 deletions ui/ModelModal/src/ModelModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ export const ModelModal: React.FC<ModelModalProps> = ({
}
)
.then((res) => {
console.log("res is: ",res);
if (res.error) {
messageHandler.error("模型检查失败");
messageHandler.error("模型检查失败 " + res.error);
setLoading(false);
} else if (data) {
modelService.updateModel({
api_key: value.api_key,
model_type,
base_url: value.base_url,
model_name: value.model_name,
api_header: value.api_header || header,
Expand Down Expand Up @@ -293,7 +293,6 @@ export const ModelModal: React.FC<ModelModalProps> = ({
useEffect(() => {
if (open) {
if (data) {
console.log(data);
resetCurData(data);
} else {
reset({
Expand Down