Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Dec 17, 2024
1 parent 9167954 commit 3fc841c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/app/src/features/openai/server/models/ai-assistant.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { type IGrantedGroup, GroupType } from '@growi/core';
import type mongoose from 'mongoose';
import {
type IGrantedGroup, GroupType, type IPage, type IUser, type Ref,
} from '@growi/core';
import { type Model, type Document, Schema } from 'mongoose';

import { getOrCreateModel } from '~/server/util/mongoose-utils';
Expand Down Expand Up @@ -39,9 +40,9 @@ interface AiAssistant {
instruction?: string
vectorStoreId: string // VectorStoreId of OpenAI Specify (https://platform.openai.com/docs/api-reference/vector-stores/object)
types: AiAssistantType[]
creator: mongoose.Types.ObjectId
creator: Ref<IUser>
grantedGroups: IGrantedGroup[];
pages: mongoose.Types.ObjectId[]
pages: Ref<IPage>[]
sharingScope: AiAssistantSharingScope
learningScope: AiAssistantLearningScope
isDeleted: boolean
Expand Down

0 comments on commit 3fc841c

Please sign in to comment.