Skip to content

Commit

Permalink
a few more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki committed Dec 16, 2024
1 parent f81b7f7 commit e398438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/AiChat/AiChat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { gitLink } from "../../story-utils"
Exported from `smoot-design/ai`, the AiChat component is a chat interface
for use with AI services. It can be used with text-streaming or JSON APIs.

This demo shows the AiChat component with a simple text-streaming API.

<Primary />

## Inputs
Expand Down
4 changes: 4 additions & 0 deletions src/components/AiChat/AiChat.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ type Story = StoryObj<typeof AiChat>

export const StreamingResponses: Story = {}

/**
* Here `AiChat` is used with a non-streaming JSON API. The JSON is converted
* to text via `parseContent`.
*/
export const JsonResponses: Story = {
args: {
requestOpts: { apiUrl: TEST_API_JSON },
Expand Down

0 comments on commit e398438

Please sign in to comment.