general MCP Server
中文大模型通用SDK,系统性优化接口适配、增强响应解析和批量处理等能力,深度适配 OpenAI 生态内 LangChain、LlamaIndex、AutoGen 等大模型应用框架。支持作为Agent Skill部署到各种AI编程工具。
Discovered via agent-topic:autogen and last synced 3mo ago.
Install instructions not detected yet
Check the source repository for the latest setup steps.
Description
`str`/`list[str]`
`float`
Scenario
### 2.1 Chat Completions Single Call Three calling methods are supported, with the simplest being one line of code, one parameter: **Simplified Call:** Does not support any parameters other than strings (streaming can be configured at client level with `stream=True` parameter). ```python resp = client("Introduce yourself in one sentence") ``` **Standard Call:** ```python resp = client.chat.create(prompt="Introduce yourself in one sentence", stream=True) ``` **Full Call:** ```python resp = client.chat.create( messages=[ {"role": "user", "content": "Introduce yourself in one sentence"}, {"role": "assistant", "content": "I am an intelligent assistant"}, {"role": "user", "content": "Hello"}, ] ) ``` #### 2.1.1 Non-Streaming Call ```python resp = client.chat.create( messages=[{"role": "user", "content": "Introduce yourself in one sentence"}], ) ``` #### 2.1.2 Streaming Call ```python resp = client.chat.create( prompt="Introduce yourself in one sentence", stream=True ) for chunk in resp: print(resp.still) # Real-time accumulated model response text print(resp.raw) # Complete accumulated model native response ``` #### 2.1.3 Response Access In streaming calls, access via `for` loop with **real-time accumulation** for responses or the following key fields; non-streaming calls do not support `for` iteration, and access returns complete field content:
`float`
`str`/`list[str]`
`Dict`/`List[Dict]`
`"response content..."`
Configuration
`bool`
`str/dict`
`int`
`{"id": "...", "choices": [...], ...}`
`str`
`float`
Field Description
`str`
`int`
`float`
`int`
`float`
`list[dict]`/`list[list[dict]]`
`int`
`dict`
`set/list`
`list[dict]`
`str/list`
`dict`
`list`
`dict`
`str`
`bool`
`int`
`float`
`int`
`list`
`int`
`str`
Pass-through Parameters
`int`
`list[str]`
Type
`str`
`int`
`bool`