Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/mcpx/docs/program/libraries-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

## Model resolution, prompt, proxy, repair, hooks and administration

**Existing behavior.** The book already documents `internal/model.Provider.Generate`, named `model.providers`, ordered `model.profiles`, explicit credential variable names, `model.budget`, `model.timeout`, and per-attempt timeout. The configured provider defaults to `none`. The configuration chapter adds an important qualification: explicit model/provider requests and the legacy scripting provider's environment or installed-CLI discovery can select generation when the request permits it. The old `repair.provider` and `repair.model` settings mentioned in a fleet file are reported as unregistered. The behavioral oracle for “no model” must count every attempted outbound call and CLI spawn. Reading `model.provider` alone cannot prove it. [Configuration](https://developing-today.github.io/code/configuration.html) · [Consumer](https://developing-today.github.io/code/consumer.html)
**Existing behavior.** The book already documents the `Generate` method of the `Provider` interface in `internal/model`, named `model.providers`, ordered `model.profiles`, explicit credential variable names, `model.budget`, `model.timeout`, and per-attempt timeout. The configured provider defaults to `none`. The configuration chapter adds an important qualification: explicit model/provider requests and the legacy scripting provider's environment or installed-CLI discovery can select generation when the request permits it. The old `repair.provider` and `repair.model` settings mentioned in a fleet file are reported as unregistered. The behavioral oracle for “no model” must count every attempted outbound call and CLI spawn. Reading `model.provider` alone cannot prove it. [Configuration](https://developing-today.github.io/code/configuration.html) · [Consumer](https://developing-today.github.io/code/consumer.html)

**One resolution path.** For every model-consuming operation, resolve the ordered candidates from the existing provider/profile configuration and explicit request. Intersect with caller sensitivity ceiling, eligible plan endpoints, total deadline and remaining quota. Require explicit eligibility for the selected route, including plugins, compatible remote endpoints and legacy CLI providers. Resolve credential references only after eligibility and keep values in process. Expose configured profile ID, selected provider/model, configuration revision, selection reason and measured or unknown usage. A 402 terminates model work for that request. A subsequent candidate is eligible after an unstarted or known-safe failure only within the same authorization, quota and deadline. Once a streamed response is partially delivered, retain partial status and stop. Mark usage unresolved if a provider never delivered the final usage frame. [OpenAI streaming reference](https://developers.openai.com/api/reference/resources/chat)

Expand Down
2 changes: 1 addition & 1 deletion pkgs/mcpx/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ buildMcpxGoModule {
#
# Everything else -- the MCP client, the process pools, the JSON Schema to
# TypeScript compiler, the CLI -- is standard library.
vendorHash = "sha256-WixeikMvYYYvvOssmUiVqlglEprQjP2p1pMXpkOLTME=";
vendorHash = "sha256-gNz9/Jj8zJt8o9cscqgLIhtpR3+bXo7EvPhP6I8j40A=";

subPackages = [ "cmd/mcpx" ];

Expand Down