fix(web): Official models do not support configuration

This commit is contained in:
zhaoying
2026-03-06 12:27:52 +08:00
parent 6a42e73667
commit 3398c4737a
2 changed files with 4 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 16:49:45 * @Date: 2026-02-03 16:49:45
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-04 11:50:47 * @Last Modified time: 2026-03-06 12:26:12
*/ */
/** /**
* Model List Detail Drawer * Model List Detail Drawer
@@ -153,7 +153,7 @@ const ModelListDetail = forwardRef<ModelListDetailRef, ModelListDetailProps>(({
<div className="rb:absolute rb:bottom-4 rb:left-6 rb:right-6"> <div className="rb:absolute rb:bottom-4 rb:left-6 rb:right-6">
<Row gutter={12}> <Row gutter={12}>
<Col span={12}> <Col span={12}>
<Button block onClick={() => handleEdit(item)}>{t('modelNew.modelConfiguration')}</Button> {!item.model_id && <Button block onClick={() => handleEdit(item)}>{t('modelNew.modelConfiguration')}</Button>}
</Col> </Col>
<Col span={12}> <Col span={12}>
<Button type="primary" ghost block onClick={() => handleKeyConfig(item)}>{t('modelNew.keyConfig')}</Button> <Button type="primary" ghost block onClick={() => handleKeyConfig(item)}>{t('modelNew.keyConfig')}</Button>

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 16:50:18 * @Date: 2026-02-03 16:50:18
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-04 11:39:20 * @Last Modified time: 2026-03-06 12:26:11
*/ */
/** /**
* Type definitions for Model Management * Type definitions for Model Management
@@ -121,6 +121,7 @@ export interface ModelApiKey {
* Model list item data structure * Model list item data structure
*/ */
export interface ModelListItem { export interface ModelListItem {
model_id?: string;
/** Model name */ /** Model name */
model_name?: string; model_name?: string;
/** Associated model config IDs */ /** Associated model config IDs */