chore: rename volcengine to volcark

This commit is contained in:
Junyan Qin
2025-02-23 22:52:50 +08:00
parent 1f08082a58
commit f620874251
9 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ from . import entities, requester
from ...core import app
from . import token
from .requesters import bailianchatcmpl, chatcmpl, anthropicmsgs, moonshotchatcmpl, deepseekchatcmpl, ollamachat, giteeaichatcmpl, xaichatcmpl, zhipuaichatcmpl, lmstudiochatcmpl, siliconflowchatcmpl, volcenginechatcmpl
from .requesters import bailianchatcmpl, chatcmpl, anthropicmsgs, moonshotchatcmpl, deepseekchatcmpl, ollamachat, giteeaichatcmpl, volcarkchatcmpl, xaichatcmpl, zhipuaichatcmpl, lmstudiochatcmpl, siliconflowchatcmpl, volcarkchatcmpl
FETCH_MODEL_LIST_URL = "https://api.qchatgpt.rockchin.top/api/v2/fetch/model_list"
@@ -7,8 +7,8 @@ from .. import requester
from ....core import app
@requester.requester_class("volcengine-chat-completions")
class VolcengineChatCompletions(chatcmpl.OpenAIChatCompletions):
@requester.requester_class("volcark-chat-completions")
class VolcArkChatCompletions(chatcmpl.OpenAIChatCompletions):
"""火山方舟大模型平台 ChatCompletion API 请求器"""
client: openai.AsyncClient
@@ -18,4 +18,4 @@ class VolcengineChatCompletions(chatcmpl.OpenAIChatCompletions):
def __init__(self, ap: app.Application):
self.ap = ap
self.requester_cfg = self.ap.provider_cfg.data['requester']['volcengine-chat-completions']
self.requester_cfg = self.ap.provider_cfg.data['requester']['volcark-chat-completions']