mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 14:31:00 +00:00
chore(bailian): related configuration
This commit is contained in:
+4
-4
@@ -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']
|
||||
Reference in New Issue
Block a user