Download packages/core/src/v1/config/attachment.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/v1/config/attachment.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/v1/config/attachment.ts
-
curl -L -o attachment.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/v1/config/attachment.ts
1.16 kB
| export * as ConfigAttachmentV1 from "./attachment" | |
| import { Schema } from "effect" | |
| import { PositiveInt } from "../../schema" | |
| export const Image = Schema.Struct({ | |
| auto_resize: Schema.optional(Schema.Boolean).annotate({ | |
| description: "Resize images before sending them to the model when they exceed configured limits (default: true)", | |
| }), | |
| max_width: Schema.optional(PositiveInt).annotate({ | |
| description: "Maximum image width before resizing or rejecting the attachment (default: 2000)", | |
| }), | |
| max_height: Schema.optional(PositiveInt).annotate({ | |
| description: "Maximum image height before resizing or rejecting the attachment (default: 2000)", | |
| }), | |
| max_base64_bytes: Schema.optional(PositiveInt).annotate({ | |
| description: "Maximum base64 payload bytes for an image attachment (default: 5242880)", | |
| }), | |
| }).annotate({ identifier: "ImageAttachmentConfig" }) | |
| export type Image = Schema.Schema.Type<typeof Image> | |
| export const Info = Schema.Struct({ | |
| image: Schema.optional(Image).annotate({ description: "Image attachment configuration" }), | |
| }).annotate({ identifier: "AttachmentConfig" }) | |
| export type Info = Schema.Schema.Type<typeof Info> | |