MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / ImageGenerationResponse

Interface ImageGenerationResponse

lib/api.ts:1058–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058export interface ImageGenerationResponse {
1059 candidates: Array<{
1060 content: {
1061 parts: Array<{
1062 text?: string;
1063 inlineData?: {
1064 mimeType: string;
1065 data: string; // Base64 编码的图片数据
1066 };
1067 }>;
1068 role: string;
1069 };
1070 finishReason: string;
1071 }>;
1072}
1073
1074// SSE 事件类型
1075export type SSEEventType = 'heartbeat' | 'result' | 'error';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected