-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (25 loc) · 1.14 KB
/
Copy pathindex.js
File metadata and controls
28 lines (25 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Schema from '@deepseek-ai/schemastery'
import { defaultConfigPath } from './src/config.js'
import { FACTORY_DEFAULT_MODEL, MODEL_IDS } from './src/models.js'
import { registerTools } from './src/tools.js'
export const name = '88api-image'
export const inject = ['tools']
export const Config = Schema.object({
apiBaseUrl: Schema.string().default('https://88api.ai'),
allowInsecureApiBaseUrl: Schema.boolean().default(false),
configPath: Schema.string().default(defaultConfigPath()),
outputDir: Schema.string().default(''),
factoryDefaultModel: Schema.union(MODEL_IDS).default(FACTORY_DEFAULT_MODEL),
requestTimeoutMs: Schema.number().default(600_000),
toolTimeoutMs: Schema.number().default(1_260_000),
maxResponseBytes: Schema.number().default(128 * 1024 * 1024),
maxReferenceBytes: Schema.number().default(20 * 1024 * 1024),
maxReferenceImages: Schema.number().default(10),
maxCount: Schema.number().default(4),
maxBatchRequests: Schema.number().default(20),
maxImagesPerResponse: Schema.number().default(4),
attachResults: Schema.boolean().default(true),
})
export function apply(ctx, config) {
registerTools(ctx, config)
}