Skip to content

[do not merge] Implement basic playground using @axflow/models#4

Open
benjreinhart wants to merge 1 commit into
mainfrom
use-chat
Open

[do not merge] Implement basic playground using @axflow/models#4
benjreinhart wants to merge 1 commit into
mainfrom
use-chat

Conversation

@benjreinhart
Copy link
Copy Markdown
Contributor

Example playground using axflow/models

@benjreinhart benjreinhart requested a review from nichochar August 30, 2023 21:45
@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 1, 2023 7:47pm

Comment thread app/api/openai/chat/route.ts Outdated
Comment thread app/playground/page.tsx
<div className="h-[600px] w-[500px] bg-muted bg-zinc-900 text-sm px-3 py-2 rounded space-y-4">
{props.messages.map((msg) => (
<p key={msg.id}>
{msg.data && (
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msg.data is an array of values that gets populated when the API streams back "additional data" with the response.

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