feat(数据源): 支持飞书个人授权身份接入,并修复数据源与 Kimi 模型相关问题#1726
Open
iqiuzixuan wants to merge 6 commits into
Open
Conversation
- 新增飞书 OAuth 授权回调和用户态 token 刷新 - 支持飞书资源树按 parent_id 懒加载 - 更新数据源编辑弹窗授权模式与多语言文案
- 切换应用/个人身份时清空资源树缓存和已选范围 - 拉取资源前同步飞书 auth_mode 到临时数据源 - 优化个人授权按钮间距并展示回调地址指引
- 保存成功后清空临时数据源 ID - 保留取消流程的临时数据源清理行为
- 为 VLM 记录 Moonshot/Kimi 固定温度模型标记 - 调用前将固定温度模型 temperature 修正为 1 - 新增测试覆盖 Kimi 与 moonshot-v1 识别
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景 / Why
为数据源接入补齐「飞书个人授权」能力,让用户以自己的飞书身份完成 OAuth 授权访问数据源;同时修复了授权切换、数据源误删,以及 Kimi 固定温度模型调用报错等问题。
改动内容 / What
功能
修复
moonshot-v1-*、kimi-k2.5、kimi-k2.6只接受temperature=1,传其它值会返回invalid temperature: only 1 is allowed。temperature钉为1,其余模型保持默认(0.1)。internal/models/vlm/remote_api.go,并新增单测internal/models/vlm/remote_api_test.go。测试 / Testing
go build ./...go test ./internal/models/vlm/(新增 6 个用例全部通过:kimi-k2.6/kimi-k2.5/moonshot-v1-*-vision命中,kimi-k2/kimi-k2-turbo/gpt-4o不命中)影响范围 / Impact