qoder 0.2.38: a reply names the model-list entry it was sent with (#413)
Qoder and Qoder CN chat replies name the model-list entry the request was built from (m.name), in JSON and every SSE chunk, usage included. A blank name, or one equal to the slot key, keeps the requested id. No extra model-list fetch per request; keys, X-Model-Key and model_config unchanged. Run at the reviewed head 6f9813f7bb44ea243007c1da2495d69de6be2de9: - bun test in packages/qoder: 266 pass, 0 fail. - model-identity.test.mjs against main's index.mjs: 28 of 28 fail; at the head they pass. - Merges cleanly onto main; npm has 0.2.37, this is 0.2.38. Not tried: a real Qoder account. Closes #412 once the reporter confirms.
This commit is contained in:
@@ -166,6 +166,21 @@ itself.
|
||||
|
||||
## Models
|
||||
|
||||
Chat responses report the display name from the same model-list entry
|
||||
used to build the request, in both JSON completions and every SSE chunk
|
||||
(including usage). A blank name or a name equal to the slot key falls
|
||||
back to the requested model ID. This shared behavior applies to Qoder,
|
||||
Qoder CN, QwenWork and QwenWork Enterprise, including tier labels.
|
||||
|
||||
Reporting the name does not fetch the model list again. The existing
|
||||
cache and model-list refresh behavior remain in place: a model missing
|
||||
from the cache still forces a refresh, and normal list refreshes update
|
||||
the configuration and name together. Model-list keys, API IDs,
|
||||
`X-Model-Key` and `model_config` are unchanged; slots with the same display
|
||||
name remain independently selectable. The name describes the catalog
|
||||
entry used for the request, not an attestation of the backend that
|
||||
executed it.
|
||||
|
||||
The `provider.models` hook reads the account's own list, as Qoder's client
|
||||
asks for it (`/algo/api/v2/model/list`). It keeps the enabled models of the
|
||||
listing's `app` scene, the list Qoder's app shows and the one a request
|
||||
|
||||
Reference in New Issue
Block a user