@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.
package/dist/llms.txt CHANGED
@@ -330,6 +330,8 @@ const { content } = await kmClient.ai.chat({
330
330
 
331
331
  Used to generate structured JSON output with AI. Automatically ensures the response is valid JSON and parses it for you.
332
332
 
333
+ **Important:** Your prompt must include the word "json" and should describe the expected output schema (field names, types, and structure) to ensure the AI generates properly formatted responses.
334
+
333
335
  **Parameters:**
334
336
 
335
337
  - **req.model**: `string` AI model to use (optional). Available models:
@@ -112,6 +112,10 @@ export declare class KokimokiAiService {
112
112
  * a JSON-formatted response. This is useful for scenarios where the output
113
113
  * needs to be parsed or processed programmatically.
114
114
  *
115
+ * **Important:** Your prompt must include the word "json" and should describe
116
+ * the expected output schema (field names, types, and structure) to ensure
117
+ * the AI generates properly formatted responses.
118
+ *
115
119
  * @param req The chat request parameters.
116
120
  * @param req.model Optional. The AI model to use. Defaults to server-side default if not specified.
117
121
  * Available models:
@@ -149,5 +153,5 @@ export declare class KokimokiAiService {
149
153
  * @param tags Optional. Tags to associate with the image.
150
154
  * @returns A promise that resolves to the modified image upload information.
151
155
  */
152
- modifyImage(baseImageUrl: string, prompt: string, tags?: string[]): Promise<Upload>;
156
+ modifyImage(baseImageUrl: string, prompt: string, tags?: string[], model?: 'gemini-2.5-flash-image' | 'gemini-3-pro-image-preview'): Promise<Upload>;
153
157
  }
@@ -113,6 +113,10 @@ export class KokimokiAiService {
113
113
  * a JSON-formatted response. This is useful for scenarios where the output
114
114
  * needs to be parsed or processed programmatically.
115
115
  *
116
+ * **Important:** Your prompt must include the word "json" and should describe
117
+ * the expected output schema (field names, types, and structure) to ensure
118
+ * the AI generates properly formatted responses.
119
+ *
116
120
  * @param req The chat request parameters.
117
121
  * @param req.model Optional. The AI model to use. Defaults to server-side default if not specified.
118
122
  * Available models:
@@ -150,11 +154,11 @@ export class KokimokiAiService {
150
154
  * @param tags Optional. Tags to associate with the image.
151
155
  * @returns A promise that resolves to the modified image upload information.
152
156
  */
153
- async modifyImage(baseImageUrl, prompt, tags = []) {
157
+ async modifyImage(baseImageUrl, prompt, tags = [], model = 'gemini-2.5-flash-image') {
154
158
  const res = await fetch(`${this.client.apiUrl}/ai/modify-image`, {
155
159
  method: "POST",
156
160
  headers: this.client.apiHeaders,
157
- body: JSON.stringify({ baseImageUrl, prompt, tags }),
161
+ body: JSON.stringify({ baseImageUrl, prompt, tags, model }),
158
162
  });
159
163
  if (!res.ok) {
160
164
  throw await res.json();
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const KOKIMOKI_APP_VERSION = "2.0.1";
1
+ export declare const KOKIMOKI_APP_VERSION = "2.0.3";
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.1';
2
+ export const KOKIMOKI_APP_VERSION = '2.0.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kokimoki/app",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "description": "Kokimoki app",
6
6
  "main": "dist/index.js",