Feat/compshare requester (#1561)

* feat: add compshare requester

* doc: add compshare to README
This commit is contained in:
Junyan Qin (Chin)
2025-07-03 15:04:02 +08:00
committed by GitHub
parent 14411a8af6
commit abd02f04af
6 changed files with 48 additions and 0 deletions
@@ -0,0 +1,17 @@
from __future__ import annotations
import typing
import openai
from . import chatcmpl
class CompShareChatCompletions(chatcmpl.OpenAIChatCompletions):
"""CompShare ChatCompletion API 请求器"""
client: openai.AsyncClient
default_config: dict[str, typing.Any] = {
'base_url': 'https://api.modelverse.cn/v1',
'timeout': 120,
}