integrate ai gateway and improve ui components (#1145)
This commit is contained in:
parent
7315ced92f
commit
dff2191611
29 changed files with 235 additions and 217 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { codeDocumentHandler } from '@/artifacts/code/server';
|
||||
import { imageDocumentHandler } from '@/artifacts/image/server';
|
||||
import { sheetDocumentHandler } from '@/artifacts/sheet/server';
|
||||
import { textDocumentHandler } from '@/artifacts/text/server';
|
||||
import type { ArtifactKind } from '@/components/artifact';
|
||||
|
|
@ -93,8 +92,7 @@ export function createDocumentHandler<T extends ArtifactKind>(config: {
|
|||
export const documentHandlersByArtifactKind: Array<DocumentHandler> = [
|
||||
textDocumentHandler,
|
||||
codeDocumentHandler,
|
||||
imageDocumentHandler,
|
||||
sheetDocumentHandler,
|
||||
];
|
||||
|
||||
export const artifactKinds = ['text', 'code', 'image', 'sheet'] as const;
|
||||
export const artifactKinds = ['text', 'code', 'sheet'] as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue