Skip to content

Commit

Permalink
feat(zui): Add knowledgebase custom type (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlescatta authored May 30, 2024
1 parent 0bffe73 commit da3a511
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion zui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bpinternal/zui",
"version": "0.8.2",
"version": "0.8.3",
"description": "An extension of Zod for working nicely with UIs and JSON Schemas",
"type": "module",
"source": "./src/index.ts",
Expand Down
3 changes: 3 additions & 0 deletions zui/src/z/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ export const aimodel = () => ZodEnum.create(AI_MODELS).displayAs<any>({ id: 'dro

export const datasource = (opts?: { horizontal?: boolean }) =>
ZodString.create().displayAs<any>({ id: 'datasource', params: { ...opts } })

export const knowledgebase = (opts?: { horizontal?: boolean }) =>
ZodString.create().displayAs<any>({ id: 'knowledgebase', params: { ...opts } })

0 comments on commit da3a511

Please sign in to comment.