添加 multi-llm 路由智能体(LangGraph),支持多 LLM 分发能力;在 Gateway 中注册 /api/multi-llm 路由,并豁免其 CSRF 和认证校验;同时新增 asyncmy 依赖和聊天流格式文档。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
248 B
Python
10 lines
248 B
Python
from typing import Annotated
|
|
|
|
from langgraph.graph.message import add_messages
|
|
from typing_extensions import NotRequired, TypedDict
|
|
|
|
|
|
class MultiLLMState(TypedDict):
|
|
messages: Annotated[list, add_messages]
|
|
selected_system: NotRequired[str]
|