Shun Miyazawa 1 год назад
Родитель
Сommit
410c3bdc41
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      apps/app/src/features/openai/server/routes/edit/index.ts

+ 4 - 0
apps/app/src/features/openai/server/routes/edit/index.ts

@@ -167,6 +167,10 @@ export const postMessageToEditHandlersFactory: PostMessageHandlersFactory = (cro
               - Edit markdown according to user instructions and include it line by line in the 'replace' object. Return original text for lines that do not need editing.
               - Edit markdown according to user instructions and include it line by line in the 'replace' object. Return original text for lines that do not need editing.
               - [At the end of the list] A "message" object that contains your friendly message explaining that the operation was completed and what changes were made.
               - [At the end of the list] A "message" object that contains your friendly message explaining that the operation was completed and what changes were made.
 
 
+              IMPORTANT:
+              - The text for lines that do not need correction must be returned exactly as in the original text.
+              - Include original text in the replace object even if it contains only spaces or line breaks
+
               Always provide messages in the same language as the user's request.`,
               Always provide messages in the same language as the user's request.`,
             },
             },
             // {
             // {