feat: better image handling (auto resize & max size constraints) (#26401)
This commit is contained in:
@@ -1132,6 +1132,17 @@ export type McpRemoteConfig = {
|
||||
*/
|
||||
export type LayoutConfig = "auto" | "stretch"
|
||||
|
||||
export type ImageAttachmentConfig = {
|
||||
auto_resize?: boolean
|
||||
max_width?: number
|
||||
max_height?: number
|
||||
max_base64_bytes?: number
|
||||
}
|
||||
|
||||
export type AttachmentConfig = {
|
||||
image?: ImageAttachmentConfig
|
||||
}
|
||||
|
||||
export type Config = {
|
||||
$schema?: string
|
||||
shell?: string
|
||||
@@ -1246,6 +1257,7 @@ export type Config = {
|
||||
tools?: {
|
||||
[key: string]: boolean
|
||||
}
|
||||
attachment?: AttachmentConfig
|
||||
enterprise?: {
|
||||
url?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user