Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-schabel committed Jan 10, 2025
1 parent 520a7eb commit 4a4e402
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion packages/client/src/hooks/api/use-chat-ai-api.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
import { useApi } from '../use-api';
import { CreateChatBody, Chat, ChatMessage, APIProviders, UnifiedModel } from 'shared'
import { CreateChatBody, Chat, ChatMessage, APIProviders } from 'shared'
import { CreateMessageBodyGeneric } from 'shared/src/validation/chat-api-validation';
import { commonErrorHandler } from './common-mutation-error-handler';


interface UnifiedModel {
id: string;
name: string;
description: string;
}

export type UpdateChatInput = {
title: string;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export {
} from 'drizzle-orm';


export type { CreateChatBody, CreateMessageBody, DeleteChatParams, DeleteMessageParams, ForkChatBody, ForkChatFromMessageBody, ForkChatFromMessageParams, GetMessagesParams, UpdateChatBody, UpdateChatParams, FileSearchValidationBody, ForkChatParams, UnifiedModel, CreateMessageBodyGeneric } from './src/validation/chat-api-validation';
export type { CreateChatBody, CreateMessageBody, DeleteChatParams, DeleteMessageParams, ForkChatBody, ForkChatFromMessageBody, ForkChatFromMessageParams, GetMessagesParams, UpdateChatBody, UpdateChatParams, FileSearchValidationBody, ForkChatParams, CreateMessageBodyGeneric } from './src/validation/chat-api-validation';
export type { CreateProjectBody, UpdateProjectParams, UpdateProjectBody, GetOrDeleteProjectParams, GetProjectFilesParams, SyncProjectParams } from './src/validation/projects-api-validation';
export type { CreatePromptBody, UpdatePromptParams, UpdatePromptBody, GetOrDeletePromptParams, ListPromptsParams } from './src/validation/prompt-api-validation';
export type { CreateProviderKeyBody, UpdateProviderKeyParams, UpdateProviderKeyBody, GetOrDeleteProviderKeyParams } from './src/validation/provider-key-api-validation';
Expand Down
4 changes: 3 additions & 1 deletion packages/streaming-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"version": "1.0.0",
"scripts": {
"test": "bun test src/",
"test:watch": "bun test --watch src/"
"test:watch": "bun test --watch src/",
"prepublishOnly": "bun test",
"publish:streaming-engine": "bun publish --access public"
},
"devDependencies": {
"bun-types": "latest",
Expand Down

0 comments on commit 4a4e402

Please sign in to comment.