Skip to content

Commit d165587

Browse files
committed
🐛 Fix jina embedding check and model check frontend error
1 parent 52746ad commit d165587

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

backend/services/model_health_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ async def check_model_connectivity(model_name: str):
4141
# Test connectivity based on different model types
4242
if model_type == "embedding":
4343
# TODO: Implement non-Jina model instantiation in the future
44-
connectivity = JinaEmbedding(model_name=model_name, base_url=model_base_url, api_key=model_api_key,
45-
embedding_dim=1024).check_connectivity()
44+
connectivity = JinaEmbedding(api_key=model_api_key).check_connectivity()
4645

4746
elif model_type == "llm":
4847
observer = MessageObserver()

frontend/app/setup/modelSetup/model/ModelListCard.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,13 +322,9 @@ export const ModelListCard = ({
322322
// 注册更新函数
323323
modelUpdateRegistry.set(instanceId, updateModelStatus);
324324

325-
// 确保全局定时器启动
326-
const cleanupTimer = startGlobalTimer();
327-
328325
// 组件卸载时清理
329326
return () => {
330327
modelUpdateRegistry.delete(instanceId);
331-
cleanupTimer();
332328
};
333329
}, [updateModelStatus]);
334330

sdk/nexent/core/models/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ VOICE_TYPE=your_voice_type
8888
from Nexent.core.models.embedding_model import JinaEmbedding
8989

9090
# 初始化嵌入模型
91-
embedding = JinaEmbedding(
92-
model_name="your_model",
93-
base_url="your_api_url",
94-
api_key="your_api_key"
95-
)
91+
embedding = JinaEmbedding(api_key="your_api_key")
9692

9793
# 获取文本嵌入
9894
inputs = [{"text": "Hello world"}]

0 commit comments

Comments
 (0)