Open
Conversation
… subdirs Move scattered client code under src/client/ with role-based organization: - src/client/ → src/client/consumer/ (HTTP client for purchasing inference) - src/ws/ → src/client/provider/ws/ (WebSocket client for offering inference) - src/schemas/ → src/client/provider/schemas/ (protocol schemas) - src/auth/ → src/client/auth/ (shared authentication) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Call the LLM directly from the plugin using pi-ai's streamSimple/completeSimple instead of forwarding requests to the OpenClaw gateway at localhost:18789. Model config is read from <agentDir>/openclaw.json and credentials/model registry from auth.json + models.json in the agent directory. Startup fails fast if any of these are missing or misconfigured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Standardize terminology: "supplier" for the marketplace role that sells inference, "provider" reserved for LLM providers (e.g. anthropic) and the OpenClaw plugin API which uses its own "provider" terminology. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR moves client code to its own subdirectory, distinguishing between provider and consumer clients. It also sends inference requests through the
pi-aipackage rather than through OpenClaw.