Llm v1 contract - #580
Merged
Merged
Conversation
useX402Chat now takes an optional agentUrl (defaulting to fretchen's own endpoint) instead of hardcoding X402_LLM_URL, so /assistent can pay and call any llm/v1 batch-settlement agent. Reconcile the default to the clean llm-agent.fretchen.eu origin now advertised in openapi.llm.json. Channel state in localStorage is already keyed per-origin, so switching agents is isolated. No scheme change — still stock batch-settlement. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The multi-agent escape hatch surfaced an ecosystem that doesn't exist yet (we're the only llm/v1-compatible agent today), so it confused more than it helped. Simplify the visible sidebar: - Show honest provenance for the agent actually serving the chat (operator + payTo + origin), read live from its own /openapi.json + 402 via a new fetchAgentCard() helper — replacing the stale /agent-registration.json read. - Drop the "Become a provider" link (pointed at the dropped onboarding page) and the "EIP-8004 JSON" link (a machine artifact of no value to chat users) from the llm sidebar path. genimg path untouched. - Stop mounting AgentSelector; remove the custom-agent escape-hatch state from AssistantChat. - Fix the "Clear chat" button so it reads as an actionable control, not a permanently-greyed one. AgentSelector.tsx, x402Discovery's precheckLlmV1Agent, and useX402Chat's agentUrl param are kept and tested, ready to re-enable when llm/v2 (OpenAI chat shape) makes third-party agents actually compatible — documented in open_agent_platform_plan.md. Co-Authored-By: Claude Opus 4.8 <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.
No description provided.