Skip to content

Conversation

@lgrammel
Copy link
Collaborator

@lgrammel lgrammel commented Jan 5, 2026

Background

When using on-device, in-browser, or locally hosted models, it can make sense to call the LLM API directly without using an intermediate server.

Summary

Add DirectChatTransport which calls an Agent implementation directly.

Manual Verification

  • run examples/next-openai/app/chat-openai-direct/page.tsx

Related Issues

Resolves #5140

@lgrammel lgrammel marked this pull request as ready for review January 5, 2026 18:30
@lgrammel lgrammel merged commit 4e90233 into main Jan 5, 2026
18 checks passed
@lgrammel lgrammel deleted the lg/SjnxgDEN branch January 5, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support useChat Without an API Route (Client-side usage)

2 participants