-
Notifications
You must be signed in to change notification settings - Fork 315
Use Cloudflare-AI-playground as client name instead of sessionId for playground #622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Cloudflare-AI-playground as client name instead of sessionId for playground #622
Conversation
|
| <a | ||
| className="hover:bg-gray-50 text-sm cursor-pointer font-sm px-3 py-2 bg-white border border-gray-200 rounded-md shadow-sm flex items-center" | ||
| href="https://github.com/cloudflare/agents/tree/main/examples/ai-playground" | ||
| href="https://github.com/cloudflare/agents/tree/main/site/ai-playground" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also fixed this broken link!
commit: |
site/ai-playground/src/app.tsx
Outdated
| const agent = useAgent<Playground, PlaygroundState>({ | ||
| agent: "playground", | ||
| name: sessionId, | ||
| name: "Cloudflare-AI-Playground", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would make every client connect to the same agent instance. Maybe it can be Cloudflare-Ai-playground-:id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
2187d6c to
224b388
Compare
threepointone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome thank you very much!
This looks a lot friendlier

than this!
