Skip to content

Commit

Permalink
try to fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Apr 16, 2024
1 parent cb8e24f commit c667ff0
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 79 deletions.
2 changes: 1 addition & 1 deletion extensions/fs-document-storage/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Readme from './readme.mdx';
const identifier = 'rag.document-storage.fs';
const displayName = 'File system storage';
const optionsSchema = z.object({
path: z.string().optional().placeholder('DOCUMENT_STORE_PATH'),
path: z.string().optional(),
});

export type FileSystemDocumentStorageOptions = z.infer<typeof optionsSchema>;
Expand Down
2 changes: 1 addition & 1 deletion extensions/llm/cohere/reranker/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface CohereRerankerOptions {
const identifier = 'rag.reranker.cohere';
const displayName = 'Cohere Reranker';
const optionsSchema = z.object({
token: z.string().optional().placeholder('COHERE_TOKEN'),
token: z.string().optional(),
model: z.string().optional(),
});

Expand Down
2 changes: 1 addition & 1 deletion extensions/llm/jinaai/reranker/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface JinaAIRerankerOptions {
const identifier = 'rag.reranker.jinaai';
const displayName = 'Jina AI Reranker';
const optionsSchema = z.object({
token: z.string().optional().placeholder('JINAAI_TOKEN'),
token: z.string().optional(),
model: z.string().optional(),
});

Expand Down
4 changes: 2 additions & 2 deletions extensions/vercel-blob-document-storage/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Readme from './readme.mdx';
const identifier = 'rag.document-storage.vercel-blob';
const displayName = 'Vercel Blob';
const optionsSchema = z.object({
token: z.string().optional().placeholder('BLOB_READ_WRITE_TOKEN'),
prefix: z.string().optional().placeholder('VERCEL_BLOB_STORAGE_PREFIX'),
token: z.string().optional(),
prefix: z.string().optional(),
});

export type VercelBlobDocumentStorageOptions = z.infer<typeof optionsSchema>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"unified": "^11.0.4",
"unist-util-remove": "^4.0.0",
"vaul": "^0.8.0",
"zod": "workspace:zod-extension@^"
"zod": "^3.22.4"
},
"devDependencies": {
"@createrag/extension-cohere-reranker": "workspace:^",
Expand Down
1 change: 0 additions & 1 deletion packages/zod-extension/.gitignore

This file was deleted.

15 changes: 0 additions & 15 deletions packages/zod-extension/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/zod-extension/index.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/zod-extension/index.mjs

This file was deleted.

9 changes: 0 additions & 9 deletions packages/zod-extension/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/zod-extension/patch.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/zod-extension/patch.mjs

This file was deleted.

23 changes: 8 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/components/ui/auto-form/fields/object.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ export default function AutoFormObject<
let item = shape[name] as z.ZodAny;
item = handleIfZodNumber(item) as z.ZodAny;
const zodBaseType = getBaseType(item);
const itemName = item._def.label ?? beautifyObjectName(name);
const itemPlaceholder = item._def.placeholder;
const itemDescription = item._def.description;
const itemName = item._def.description ?? beautifyObjectName(name);
const key = [...path, name].join(".");

const {
Expand Down Expand Up @@ -150,7 +148,6 @@ export default function AutoFormObject<
const value = field.value ?? defaultValue ?? "";

const fieldProps = {
placeholder: itemPlaceholder,
...zodToHtmlInputProps(item),
...field,
...fieldConfigItem.inputProps,
Expand All @@ -170,7 +167,6 @@ export default function AutoFormObject<
field={field}
fieldConfigItem={fieldConfigItem}
label={itemName}
description={itemDescription}
isRequired={isRequired}
zodItem={item}
fieldProps={fieldProps}
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/auto-form/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export type AutoFormInputComponentProps = {
field: ControllerRenderProps<FieldValues, any>;
fieldConfigItem: FieldConfigItem;
label: string;
description?: string;
isRequired: boolean;
fieldProps: any;
zodItem: z.ZodAny;
Expand Down

0 comments on commit c667ff0

Please sign in to comment.