Skip to content

Llm v1 contract - #580

Merged
fretchen merged 6 commits into
mainfrom
llm-v1-contract
Jul 28, 2026
Merged

Llm v1 contract#580
fretchen merged 6 commits into
mainfrom
llm-v1-contract

Conversation

@fretchen

Copy link
Copy Markdown
Owner

No description provided.

fretchen and others added 6 commits July 28, 2026 08:27
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>
@fretchen
fretchen merged commit 749b783 into main Jul 28, 2026
5 checks passed
@fretchen
fretchen deleted the llm-v1-contract branch July 28, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant