refactor: 优化Xorbits Inference名称显示 (#961)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
shaohuzhang1 2024-08-12 16:02:13 +08:00 committed by GitHub
parent b4c8b39e8e
commit 9210a649f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 10 deletions

View File

@ -508,7 +508,7 @@ class XinferenceModelProvider(IModelProvider):
return model_info_manage
def get_model_provide_info(self):
return ModelProvideInfo(provider='model_xinference_provider', name='Xinference', icon=get_file_content(
return ModelProvideInfo(provider='model_xinference_provider', name='Xorbits Inference', icon=get_file_content(
os.path.join(PROJECT_DIR, "apps", "setting", 'models_provider', 'impl', 'xinference_model_provider', 'icon',
'xinference_icon_svg')))

View File

@ -6,21 +6,14 @@
@date2024/4/28 11:42
@desc:
"""
from typing import List, Dict
from langchain_community.chat_models import ChatZhipuAI
from langchain_community.chat_models.zhipuai import _truncate_params, _get_jwt_token, connect_sse, \
_convert_delta_to_message_chunk
from langchain_core.messages import BaseMessage, get_buffer_string
from common.config.tokenizer_manage_config import TokenizerManage
from setting.models_provider.base_model_provider import MaxKBBaseModel
import json
import logging
import time
from collections.abc import AsyncIterator, Iterator
from contextlib import asynccontextmanager, contextmanager
from typing import Any, Dict, List, Optional, Tuple, Type, Union
from collections.abc import Iterator
from typing import Any, Dict, List, Optional
from langchain_core.callbacks import (
CallbackManagerForLLMRun,