integrate ai gateway and improve ui components (#1145)

This commit is contained in:
josh 2025-09-01 11:07:07 +01:00 committed by GitHub
parent 7315ced92f
commit dff2191611
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 235 additions and 217 deletions

View file

@ -67,6 +67,7 @@ function PureArtifact({
votes,
isReadonly,
selectedVisibilityType,
selectedModelId,
}: {
chatId: string;
input: string;
@ -82,6 +83,7 @@ function PureArtifact({
regenerate: UseChatHelpers<ChatMessage>['regenerate'];
isReadonly: boolean;
selectedVisibilityType: VisibilityType;
selectedModelId: string;
}) {
const { artifact, setArtifact, metadata, setMetadata } = useArtifact();
@ -286,9 +288,9 @@ function PureArtifact({
x: 0,
scale: 1,
transition: {
delay: 0.2,
delay: 0.1,
type: 'spring',
stiffness: 200,
stiffness: 300,
damping: 30,
},
}}
@ -336,6 +338,7 @@ function PureArtifact({
className="bg-background dark:bg-muted"
setMessages={setMessages}
selectedVisibilityType={selectedVisibilityType}
selectedModelId={selectedModelId}
/>
</div>
</div>
@ -375,9 +378,9 @@ function PureArtifact({
transition: {
delay: 0,
type: 'spring',
stiffness: 200,
stiffness: 300,
damping: 30,
duration: 5000,
duration: 0.8,
},
}
: {
@ -392,9 +395,9 @@ function PureArtifact({
transition: {
delay: 0,
type: 'spring',
stiffness: 200,
stiffness: 300,
damping: 30,
duration: 5000,
duration: 0.8,
},
}
}