@kokimoki/app 2.0.1 → 2.0.2
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.
|
@@ -149,5 +149,5 @@ export declare class KokimokiAiService {
|
|
|
149
149
|
* @param tags Optional. Tags to associate with the image.
|
|
150
150
|
* @returns A promise that resolves to the modified image upload information.
|
|
151
151
|
*/
|
|
152
|
-
modifyImage(baseImageUrl: string, prompt: string, tags?: string[]): Promise<Upload>;
|
|
152
|
+
modifyImage(baseImageUrl: string, prompt: string, tags?: string[], model?: 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview'): Promise<Upload>;
|
|
153
153
|
}
|
|
@@ -150,11 +150,11 @@ export class KokimokiAiService {
|
|
|
150
150
|
* @param tags Optional. Tags to associate with the image.
|
|
151
151
|
* @returns A promise that resolves to the modified image upload information.
|
|
152
152
|
*/
|
|
153
|
-
async modifyImage(baseImageUrl, prompt, tags = []) {
|
|
153
|
+
async modifyImage(baseImageUrl, prompt, tags = [], model = 'gemini-2.5-flash-image') {
|
|
154
154
|
const res = await fetch(`${this.client.apiUrl}/ai/modify-image`, {
|
|
155
155
|
method: "POST",
|
|
156
156
|
headers: this.client.apiHeaders,
|
|
157
|
-
body: JSON.stringify({ baseImageUrl, prompt, tags }),
|
|
157
|
+
body: JSON.stringify({ baseImageUrl, prompt, tags, model }),
|
|
158
158
|
});
|
|
159
159
|
if (!res.ok) {
|
|
160
160
|
throw await res.json();
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const KOKIMOKI_APP_VERSION = "2.0.
|
|
1
|
+
export declare const KOKIMOKI_APP_VERSION = "2.0.2";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated file. Do not edit manually.
|
|
2
|
-
export const KOKIMOKI_APP_VERSION = '2.0.
|
|
2
|
+
export const KOKIMOKI_APP_VERSION = '2.0.2';
|