@pushwoosh/rpc-gateway-ai-assistant 0.1.144 → 0.1.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data.js +23 -0
- package/package.json +1 -1
- package/pushwoosh_aigen_v1.d.ts +33 -0
package/data.js
CHANGED
|
@@ -745,6 +745,29 @@ export const data = {
|
|
|
745
745
|
"template": {
|
|
746
746
|
"type": "pushwoosh.aibuilder.v1.AiBuilderDocument",
|
|
747
747
|
"optional": true
|
|
748
|
+
},
|
|
749
|
+
"llmProvider": {
|
|
750
|
+
"type": "string",
|
|
751
|
+
"optional": true
|
|
752
|
+
},
|
|
753
|
+
"llmModel": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"optional": true
|
|
756
|
+
},
|
|
757
|
+
"referenceImages": {
|
|
758
|
+
"type": "pushwoosh.aigen.v1.AiGenReferenceImage",
|
|
759
|
+
"array": true
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"pushwoosh.aigen.v1.AiGenReferenceImage": {
|
|
764
|
+
"type": "I",
|
|
765
|
+
"fields": {
|
|
766
|
+
"mediaType": {
|
|
767
|
+
"type": "string"
|
|
768
|
+
},
|
|
769
|
+
"data": {
|
|
770
|
+
"type": "string"
|
|
748
771
|
}
|
|
749
772
|
}
|
|
750
773
|
},
|
package/package.json
CHANGED
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -114,6 +114,39 @@ export type AiGenRequest = {
|
|
|
114
114
|
* free create (styling only, no structural reference).
|
|
115
115
|
*/
|
|
116
116
|
template?: pushwoosh_aibuilder_v1_AiBuilderDocument;
|
|
117
|
+
/**
|
|
118
|
+
* Dev-only override of the LLM backing block/structure generation.
|
|
119
|
+
* Empty = the server default (self-hosted Qwen/vLLM). "claude" routes
|
|
120
|
+
* generation through Anthropic. Gated client-side behind a hidden dev
|
|
121
|
+
* flag; the server simply honours whatever it receives.
|
|
122
|
+
*/
|
|
123
|
+
llmProvider?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Dev-only override of the concrete model name for the chosen provider.
|
|
126
|
+
* Empty = the provider's configured default (e.g. anthropic.model from
|
|
127
|
+
* config). Ignored when it doesn't apply to the provider.
|
|
128
|
+
*/
|
|
129
|
+
llmModel?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Reference images ("make it like this design") fed into the generation
|
|
132
|
+
* LLM's context — both the structure planner and the per-block content
|
|
133
|
+
* generator see them. Requires a vision-capable provider (Claude, or our
|
|
134
|
+
* multimodal Qwen/vLLM). Empty = text-only generation as before. Sent
|
|
135
|
+
* inline as base64; one image is the common case but the field is
|
|
136
|
+
* repeated for future multi-reference prompts.
|
|
137
|
+
*/
|
|
138
|
+
referenceImages: AiGenReferenceImage[];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* AiGenReferenceImage is an inline, base64-encoded image attached to a
|
|
142
|
+
* generation request as visual context. Not persisted as document content —
|
|
143
|
+
* it only conditions the LLM for this one run.
|
|
144
|
+
*/
|
|
145
|
+
export type AiGenReferenceImage = {
|
|
146
|
+
/** MIME type: "image/jpeg" | "image/png" | "image/gif" | "image/webp". */
|
|
147
|
+
mediaType: string;
|
|
148
|
+
/** Base64-encoded image bytes (no data: URI prefix). */
|
|
149
|
+
data: string;
|
|
117
150
|
};
|
|
118
151
|
/**
|
|
119
152
|
* AiGenAddBlock triggers add-block mode on Generate. The server emits a
|