@kokimoki/app 2.0.1 → 2.0.3

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.
@@ -140,6 +140,10 @@ declare class KokimokiAiService {
140
140
  * a JSON-formatted response. This is useful for scenarios where the output
141
141
  * needs to be parsed or processed programmatically.
142
142
  *
143
+ * **Important:** Your prompt must include the word "json" and should describe
144
+ * the expected output schema (field names, types, and structure) to ensure
145
+ * the AI generates properly formatted responses.
146
+ *
143
147
  * @param req The chat request parameters.
144
148
  * @param req.model Optional. The AI model to use. Defaults to server-side default if not specified.
145
149
  * Available models:
@@ -177,7 +181,7 @@ declare class KokimokiAiService {
177
181
  * @param tags Optional. Tags to associate with the image.
178
182
  * @returns A promise that resolves to the modified image upload information.
179
183
  */
180
- modifyImage(baseImageUrl: string, prompt: string, tags?: string[]): Promise<Upload>;
184
+ modifyImage(baseImageUrl: string, prompt: string, tags?: string[], model?: 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview'): Promise<Upload>;
181
185
  }
182
186
 
183
187
  /**
@@ -11374,6 +11374,10 @@ class KokimokiAiService {
11374
11374
  * a JSON-formatted response. This is useful for scenarios where the output
11375
11375
  * needs to be parsed or processed programmatically.
11376
11376
  *
11377
+ * **Important:** Your prompt must include the word "json" and should describe
11378
+ * the expected output schema (field names, types, and structure) to ensure
11379
+ * the AI generates properly formatted responses.
11380
+ *
11377
11381
  * @param req The chat request parameters.
11378
11382
  * @param req.model Optional. The AI model to use. Defaults to server-side default if not specified.
11379
11383
  * Available models:
@@ -11411,11 +11415,11 @@ class KokimokiAiService {
11411
11415
  * @param tags Optional. Tags to associate with the image.
11412
11416
  * @returns A promise that resolves to the modified image upload information.
11413
11417
  */
11414
- async modifyImage(baseImageUrl, prompt, tags = []) {
11418
+ async modifyImage(baseImageUrl, prompt, tags = [], model = 'gemini-2.5-flash-image') {
11415
11419
  const res = await fetch(`${this.client.apiUrl}/ai/modify-image`, {
11416
11420
  method: "POST",
11417
11421
  headers: this.client.apiHeaders,
11418
- body: JSON.stringify({ baseImageUrl, prompt, tags }),
11422
+ body: JSON.stringify({ baseImageUrl, prompt, tags, model }),
11419
11423
  });
11420
11424
  if (!res.ok) {
11421
11425
  throw await res.json();
@@ -15958,7 +15962,7 @@ class KokimokiTransaction {
15958
15962
  }
15959
15963
 
15960
15964
  // Auto-generated file. Do not edit manually.
15961
- const KOKIMOKI_APP_VERSION = '2.0.1';
15965
+ const KOKIMOKI_APP_VERSION = '2.0.3';
15962
15966
 
15963
15967
  var RoomSubscriptionMode;
15964
15968
  (function (RoomSubscriptionMode) {