formatting
This commit is contained in:
parent
0471443716
commit
4b28a69856
1 changed files with 2438 additions and 1874 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react-vite';
|
||||
import { fn } from 'storybook/test';
|
||||
import { PromptMessagesDisplay } from './PromptMessagesDisplay';
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { fn } from "storybook/test";
|
||||
import { PromptMessagesDisplay } from "./PromptMessagesDisplay";
|
||||
|
||||
const meta: Meta<typeof PromptMessagesDisplay> = {
|
||||
title: 'Molecules/PromptMessagesDisplay',
|
||||
title: "Molecules/PromptMessagesDisplay",
|
||||
component: PromptMessagesDisplay,
|
||||
args: {
|
||||
onCopy: fn(),
|
||||
|
|
@ -17,8 +17,8 @@ export const SingleMessage: Story = {
|
|||
args: {
|
||||
messages: [
|
||||
{
|
||||
role: 'user',
|
||||
content: 'What is the capital of France?',
|
||||
role: "user",
|
||||
content: "What is the capital of France?",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -28,12 +28,13 @@ export const Conversation: Story = {
|
|||
args: {
|
||||
messages: [
|
||||
{
|
||||
role: 'user',
|
||||
content: 'What is the capital of France?',
|
||||
role: "user",
|
||||
content: "What is the capital of France?",
|
||||
},
|
||||
{
|
||||
role: 'assistant',
|
||||
content: 'The capital of France is Paris. It is the largest city in France and serves as the country\'s political, economic, and cultural center.',
|
||||
role: "assistant",
|
||||
content:
|
||||
"The capital of France is Paris. It is the largest city in France and serves as the country's political, economic, and cultural center.",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -43,11 +44,11 @@ export const WithImage: Story = {
|
|||
args: {
|
||||
messages: [
|
||||
{
|
||||
role: 'user',
|
||||
content: 'Here is a photo for you to analyze.',
|
||||
role: "user",
|
||||
content: "Here is a photo for you to analyze.",
|
||||
imageContent: {
|
||||
data: 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==',
|
||||
mimeType: 'image/png',
|
||||
data: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
|
||||
mimeType: "image/png",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
@ -58,24 +59,26 @@ export const LongConversation: Story = {
|
|||
args: {
|
||||
messages: [
|
||||
{
|
||||
role: 'user',
|
||||
content: 'Can you help me write a haiku about programming?',
|
||||
role: "user",
|
||||
content: "Can you help me write a haiku about programming?",
|
||||
},
|
||||
{
|
||||
role: 'assistant',
|
||||
content: 'Sure! Here is a haiku about programming:\n\nSilent keys tap fast\nLogic flows through glowing screens\nBugs hide in the code',
|
||||
role: "assistant",
|
||||
content:
|
||||
"Sure! Here is a haiku about programming:\n\nSilent keys tap fast\nLogic flows through glowing screens\nBugs hide in the code",
|
||||
},
|
||||
{
|
||||
role: 'user',
|
||||
content: 'That is great! Can you write another one about debugging?',
|
||||
role: "user",
|
||||
content: "That is great! Can you write another one about debugging?",
|
||||
},
|
||||
{
|
||||
role: 'assistant',
|
||||
content: 'Here is a debugging haiku:\n\nStack trace lines scroll down\nOne missing semicolon\nHours lost to a typo',
|
||||
role: "assistant",
|
||||
content:
|
||||
"Here is a debugging haiku:\n\nStack trace lines scroll down\nOne missing semicolon\nHours lost to a typo",
|
||||
},
|
||||
{
|
||||
role: 'user',
|
||||
content: 'I love it! One more about open source?',
|
||||
role: "user",
|
||||
content: "I love it! One more about open source?",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue