chore(bailian): related configuration

This commit is contained in:
Junyan Qin
2025-02-12 11:25:28 +08:00
parent e17da4e2ee
commit 191f8866ae
6 changed files with 64 additions and 9 deletions
@@ -7,9 +7,9 @@ from .. import requester
from ....core import app
@requester.requester_class("aliyun-chat-completions")
class AliyunChatCompletions(chatcmpl.OpenAIChatCompletions):
"""Aliyun ChatCompletion API 请求器"""
@requester.requester_class("bailian-chat-completions")
class BailianChatCompletions(chatcmpl.OpenAIChatCompletions):
"""阿里云百炼大模型平台 ChatCompletion API 请求器"""
client: openai.AsyncClient
@@ -18,4 +18,4 @@ class AliyunChatCompletions(chatcmpl.OpenAIChatCompletions):
def __init__(self, ap: app.Application):
self.ap = ap
self.requester_cfg = self.ap.provider_cfg.data['requester']['aliyun-chat-completions']
self.requester_cfg = self.ap.provider_cfg.data['requester']['bailian-chat-completions']