重写插件为V2格式:使用define+id+setup(ctx)+ctx.tool.transform注册工具

This commit is contained in:
ypshidifu
2026-09-21 17:04:34 +08:00
parent 5d43b5ed76
commit 0d19143065
3808 changed files with 1573549 additions and 76 deletions
@@ -0,0 +1,16 @@
import { ImageModelV2CallOptions } from './image-model-v2-call-options';
/**
* Warning from the model provider for this call. The call will proceed, but e.g.
* some settings might not be supported, which can lead to suboptimal results.
*/
export type ImageModelV2CallWarning =
| {
type: 'unsupported-setting';
setting: keyof ImageModelV2CallOptions;
details?: string;
}
| {
type: 'other';
message: string;
};