TypeScript chat docs conflate omitted LoRA selection with explicit null

未关闭 适合新手
#1,033 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
86/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
python, typescript

调研方向

阅读 packages/sie_ts_sdk/src/types.ts 中 ChatCompletionRequest.lora_adapter 的注释,然后将其与 packages/sie_server/src/sie_server/types/lora.py 中的 split_lora_selection 以及 packages/sie_server/tests/core/test_lora_selection.py 中的用例进行比较。更新 TypeScript 注释,说明省略该字段会保留配置的默认值,而显式指定 null 会选择基础模型;文档符合这一约定时即完成。

由索引模型根据 Issue 内容生成。

描述

Hullo folks,

I'm doing some research for Tessl Code Review and we ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:

The ChatCompletionRequest.lora_adapter comment says both omission and explicit null select the base model. The server selector contract distinguishes them: omission keeps the profile default, while null explicitly requests base. A caller following the TypeScript documentation can therefore request a different model configuration than intended.

Steps to reproduce
  1. Use a profile with a default adapter.
  2. Compare the documented meaning of a chat request without lora_adapter with one containing lora_adapter: null.
  3. split_lora_selection marks the first as not provided and the second as provided. Its contract explicitly preserves the default in the first case.
Expected behavior

Document omission as retaining the profile default, and explicit null as choosing base. Keep the existing distinction on the wire.

Source and validation

Checked current main at 4bd28e369334e6e38a8371dc9d322f332554b9f2.

Source inspection only: I compared the current TypeScript declaration with the selector implementation and its existing absence-versus-null test. I did not run a gateway or model inference, and am reporting the public documentation mismatch.

Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.

We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.

Baptiste

主要语言
Python
星标
3.5k
派生
328
平均合并
17 小时 8 分钟
30 天内合并 PR
108

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

superlinked/sie 的其他 Issue

查看 superlinked/sie 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。