Yuki Takei преди 11 месеца
родител
ревизия
44f8c36ccf
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      apps/app/src/features/openai/interfaces/editor-assistant/llm-response-schemas.ts

+ 1 - 0
apps/app/src/features/openai/interfaces/editor-assistant/llm-response-schemas.ts

@@ -23,6 +23,7 @@ export const LlmEditorAssistantDiffSchema = z.object({
   endLine: z.number()
     .int()
     .positive()
+    .nullable() // https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#all-fields-must-be-required
     .optional()
     .describe('Ending line number for search (1-based, optional)'),
 });