Skip to content

Commit

Permalink
fix(frontend): fix credential field schema for create embedding form
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Dec 31, 2024
1 parent aaf81b9 commit f72c2ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const strCredentialForm = unsetForm.extend({

const dictCredentialForm = unsetForm.extend({
model: z.string().min(1, 'Must not empty'),
credentials: z.object({}).passthrough(),
credentials: zodJsonText(),
});

const field = formFieldLayout<CreateEmbeddingModel>();
Expand Down

0 comments on commit f72c2ec

Please sign in to comment.