Shun Miyazawa 1 год назад
Родитель
Сommit
71b7c51d28

+ 1 - 1
apps/app/src/features/openai/server/services/replace-annotation-with-page-link.ts

@@ -9,7 +9,7 @@ import { getTranslation } from '~/server/service/i18next';
 
 type PopulatedVectorStoreFileRelation = Omit<VectorStoreFileRelation, 'pageId'> & { pageId: IPageHasId }
 
-export const replaceAnnotationWithPageLink = async(delta: MessageDelta, lang: Lang): Promise<void> => {
+export const replaceAnnotationWithPageLink = async(delta: MessageDelta, lang?: Lang): Promise<void> => {
   const content = delta.content?.[0];
 
   if (content?.type === 'text' && content?.text?.annotations != null) {