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 150a2af..88edfe7 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 6a221d2..cf78230 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"