TypeScript chat docs conflate omitted LoRA selection with explicit null

Aperta Adatta ai principianti
#1,033 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
86/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, typescript

Direzione di ricerca

Leggi il commento di ChatCompletionRequest.lora_adapter in packages/sie_ts_sdk/src/types.ts, poi confrontalo con split_lora_selection in packages/sie_server/src/sie_server/types/lora.py e con i casi in packages/sie_server/tests/core/test_lora_selection.py. Aggiorna il commento TypeScript per distinguere l’omissione, che mantiene il valore predefinito del profilo, da null esplicito, che seleziona il modello di base; il lavoro è concluso quando la documentazione corrisponde a questo contratto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
3.5k
Fork
328
Merge medio
17h 8m
PR unite (30g)
108

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di superlinked/sie

Tutte le issue di superlinked/sie

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.