mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
Restore individual provider requester implementations that were
removed in de61b5d3. These files coexist with the unified
litellmchat.py backend.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
18 lines
392 B
Python
18 lines
392 B
Python
from __future__ import annotations
|
|
|
|
import typing
|
|
import openai
|
|
|
|
from . import chatcmpl
|
|
|
|
|
|
class VolcArkChatCompletions(chatcmpl.OpenAIChatCompletions):
|
|
"""火山方舟大模型平台 ChatCompletion API 请求器"""
|
|
|
|
client: openai.AsyncClient
|
|
|
|
default_config: dict[str, typing.Any] = {
|
|
'base_url': 'https://ark.cn-beijing.volces.com/api/v3',
|
|
'timeout': 120,
|
|
}
|