mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-07 14:26:03 +00:00
18 lines
355 B
Python
18 lines
355 B
Python
from __future__ import annotations
|
|
|
|
import typing
|
|
import openai
|
|
|
|
from . import chatcmpl
|
|
|
|
|
|
class NewAPIChatCompletions(chatcmpl.OpenAIChatCompletions):
|
|
"""New API ChatCompletion API 请求器"""
|
|
|
|
client: openai.AsyncClient
|
|
|
|
default_config: dict[str, typing.Any] = {
|
|
'base_url': 'http://localhost:3000/v1',
|
|
'timeout': 120,
|
|
}
|