@@ -1,6 +1,5 @@
|
||||
import { z } from 'zod'
|
||||
import { z } from '../../../../zod'
|
||||
import {
|
||||
chatCompletionMessageCustomRoles,
|
||||
chatCompletionMessageRoles,
|
||||
chatCompletionResponseValues,
|
||||
openAITasks,
|
||||
@@ -18,7 +17,9 @@ const openAIBaseOptionsSchema = z.object({
|
||||
|
||||
const initialOptionsSchema = z
|
||||
.object({
|
||||
task: z.undefined(),
|
||||
task: z.undefined().openapi({
|
||||
type: 'string',
|
||||
}),
|
||||
})
|
||||
.merge(openAIBaseOptionsSchema)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user