From bdb8baeddd2ef872cbe4ccdc699832efc77160d8 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Tue, 9 Jul 2024 23:37:19 +0800 Subject: [PATCH] =?UTF-8?q?perf(ollama):=20=E4=BF=AE=E6=94=B9=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=99=A8=E5=90=8D=E7=A7=B0=E4=BB=A5=E9=80=82=E9=85=8D?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/provider/modelmgr/apis/{ollamachatcmpl.py => ollamachat.py} | 2 +- pkg/provider/modelmgr/modelmgr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename pkg/provider/modelmgr/apis/{ollamachatcmpl.py => ollamachat.py} (98%) diff --git a/pkg/provider/modelmgr/apis/ollamachatcmpl.py b/pkg/provider/modelmgr/apis/ollamachat.py similarity index 98% rename from pkg/provider/modelmgr/apis/ollamachatcmpl.py rename to pkg/provider/modelmgr/apis/ollamachat.py index 150a2aff..88edfe7b 100644 --- a/pkg/provider/modelmgr/apis/ollamachatcmpl.py +++ b/pkg/provider/modelmgr/apis/ollamachat.py @@ -14,7 +14,7 @@ from ...tools import entities as tools_entities from ....core import app from ....utils import image -REQUESTER_NAME: str = "ollama-chat-completions" +REQUESTER_NAME: str = "ollama-chat" @api.requester_class(REQUESTER_NAME) diff --git a/pkg/provider/modelmgr/modelmgr.py b/pkg/provider/modelmgr/modelmgr.py index 6a221d29..cf782302 100644 --- a/pkg/provider/modelmgr/modelmgr.py +++ b/pkg/provider/modelmgr/modelmgr.py @@ -6,7 +6,7 @@ from . import entities from ...core import app from . import token, api -from .apis import chatcmpl, anthropicmsgs, moonshotchatcmpl, deepseekchatcmpl, ollamachatcmpl +from .apis import chatcmpl, anthropicmsgs, moonshotchatcmpl, deepseekchatcmpl, ollamachat FETCH_MODEL_LIST_URL = "https://api.qchatgpt.rockchin.top/api/v2/fetch/model_list"