Add a flask ai chat example.#1519
Conversation
Signed-off-by: gscho <greg.c.schofield@gmail.com>
|
You must have Developer access to commit code to Vercel Examples on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes. Learn more: https://vercel.com/docs/accounts/team-members-and-roles/access-roles#team-level-roles |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
fantix
left a comment
There was a problem hiding this comment.
Looks good to me!
Requires an AI gateway key so you need to deploy it yourself to test.
Maybe we can try vercel-labs/ai-python#183?
|
|
||
| import ai | ||
| from flask import Flask | ||
| from flask_sock import Sock |
There was a problem hiding this comment.
I'm seeing many Flask WebSocket tutorials using flask_socketio (from the same author but with a lot more GH ⭐) - my personal wish here is that we have a SocketIO Python example too (also being slightly different than the existing one) but that doesn't have to be this PR.
There was a problem hiding this comment.
I tested a version using that library and it worked as well. We could do a new example for that one
Signed-off-by: gscho <greg.c.schofield@gmail.com>
Description
Adds a flask version of https://github.com/vercel/examples/tree/main/websockets/fastapi-ai-chat
This needs to be released before merging: vercel/vercel#16811
Demo URL
Requires an AI gateway key so you need to deploy it yourself to test.
Type of Change
New Example Checklist
npm run new-examplewas used to create the example