fixes issue with OpenAIV1ChatCompletionSchema and PaLM compat

This commit is contained in:
khanon
2023-09-24 10:48:56 +00:00
parent 075e415343
commit 35b44e1c6b
@@ -233,7 +233,7 @@ function openaiToPalm(req: Request): z.infer<typeof PalmV1GenerateTextSchema> {
const { body } = req;
const result = OpenAIV1ChatCompletionSchema.safeParse({
...body,
model: "text-bison-001",
model: "gpt-3.5-turbo",
});
if (!result.success) {
req.log.error(