TypeScript chat docs conflate omitted LoRA selection with explicit null

Open Beginner friendly
#1,033 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
86/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python, typescript

Research direction

Read packages/sie_ts_sdk/src/types.ts at the ChatCompletionRequest.lora_adapter comment, then compare it with split_lora_selection in packages/sie_server/src/sie_server/types/lora.py and the cases in packages/sie_server/tests/core/test_lora_selection.py. Update the TypeScript comment to distinguish omission, which keeps the profile default, from explicit null, which selects the base model; done when the documentation matches that contract.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
3.5k
Forks
328
Avg merge
17h 8m
Merged PRs (30d)
108

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from superlinked/sie

All issues in superlinked/sie

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.