Skip to content

Feat/kimi client multimodal session - #20

Open
1982167424-art wants to merge 2 commits into
MoonshotAI:mainfrom
1982167424-art:feat/kimi-client-multimodal-session
Open

Feat/kimi client multimodal session#20
1982167424-art wants to merge 2 commits into
MoonshotAI:mainfrom
1982167424-art:feat/kimi-client-multimodal-session

Conversation

@1982167424-art

Copy link
Copy Markdown

No description provided.

1982167424-art and others added 2 commits July 29, 2026 19:46
Signed-off-by: elllatai <1982167424@qq.com>
…story

修复 3 个硬伤:
- B1 API base 统一为 https://api.moonshot.cn/v1(清掉误用的 .ai)
- B2 reasoning_effort ���齐 README:low/high/max,默认 max(去掉不存在的 medium)
- B3 合并两套客户端,video_understanding.py 改为从 kimi_multimodal 重导出,
  旧 `from video_understanding import VideoUnderstanding` 继续可用

新增 P0 核心能力:
- ChatSession 多轮对话,自动把 reasoning_content / tool_calls 原样存回 messages,
  符合 K3 多轮对话对完整 thinking history 的要求
- KimiClient.chat() 纯文本对话入口
- 流式输出把 reasoning(思考过程)与 content(答案)分开产出
- send_image / send_video 支持多模态多轮;reset() 保留 system 消息

配套:
- test_chat_session.py:mock 离线单测(14 项全过,无需 API key)
- .gitignore:排除 __pycache__、.workbuddy/、.claude/、生成产物
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant