@kokimoki/app 2.0.3 → 2.1.1
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/kokimoki.min.d.ts +14 -2
- package/dist/kokimoki.min.js +9 -1
- package/dist/kokimoki.min.js.map +1 -1
- package/dist/llms.txt +6 -0
- package/dist/services/kokimoki-ai.d.ts +14 -2
- package/dist/services/kokimoki-ai.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/llms.txt
CHANGED
|
@@ -308,10 +308,13 @@ Used to generate text response with AI
|
|
|
308
308
|
- `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
309
309
|
- `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
310
310
|
- `gemini-2.5-flash`: Google Gemini fast variant
|
|
311
|
+
- `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
312
|
+
- `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
311
313
|
- **req.systemPrompt**: `string` AI role/behavior (optional)
|
|
312
314
|
- **req.userPrompt**: `string` User message (optional)
|
|
313
315
|
- **req.temperature**: `number` Creativity level from 0.0 = factual to 2.0 = creative (optional)
|
|
314
316
|
- **req.maxTokens**: `number` Response length limit (optional)
|
|
317
|
+
- **req.imageUrls**: `string[]` Image URLs to include with the user prompt (Gemini models only) (optional)
|
|
315
318
|
|
|
316
319
|
**Examples:**
|
|
317
320
|
|
|
@@ -342,10 +345,13 @@ Used to generate structured JSON output with AI. Automatically ensures the respo
|
|
|
342
345
|
- `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
343
346
|
- `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
344
347
|
- `gemini-2.5-flash`: Google Gemini fast variant
|
|
348
|
+
- `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
349
|
+
- `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
345
350
|
- **req.systemPrompt**: `string` AI role/behavior (optional)
|
|
346
351
|
- **req.userPrompt**: `string` User message (optional)
|
|
347
352
|
- **req.temperature**: `number` Creativity level from 0.0 = factual to 2.0 = creative (optional)
|
|
348
353
|
- **req.maxTokens**: `number` Response length limit (optional)
|
|
354
|
+
- **req.imageUrls**: `string[]` Image URLs to include with the user prompt (Gemini models only) (optional)
|
|
349
355
|
|
|
350
356
|
**Returns:** Promise resolving to parsed JSON object of type T
|
|
351
357
|
|
|
@@ -69,6 +69,8 @@ export declare class KokimokiAiService {
|
|
|
69
69
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
70
70
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
71
71
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
72
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
73
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
72
74
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
73
75
|
* This helps define the AI's role, personality, and constraints.
|
|
74
76
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -77,6 +79,8 @@ export declare class KokimokiAiService {
|
|
|
77
79
|
* higher values make it more creative and varied.
|
|
78
80
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
79
81
|
* Controls the length of the AI's output.
|
|
82
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
83
|
+
* Allows the AI to analyze and respond based on the provided images.
|
|
80
84
|
*
|
|
81
85
|
* @returns A promise that resolves to an object containing the AI-generated response.
|
|
82
86
|
* @returns {string} content The text content of the AI's response.
|
|
@@ -96,12 +100,14 @@ export declare class KokimokiAiService {
|
|
|
96
100
|
* ```
|
|
97
101
|
*/
|
|
98
102
|
chat(req: {
|
|
99
|
-
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
|
|
103
|
+
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3-pro-preview";
|
|
100
104
|
systemPrompt?: string;
|
|
101
105
|
userPrompt: string;
|
|
102
106
|
temperature?: number;
|
|
103
107
|
maxTokens?: number;
|
|
104
108
|
responseMimeType?: string;
|
|
109
|
+
/** Image URLs to include with the user prompt (Gemini models only) */
|
|
110
|
+
imageUrls?: string[];
|
|
105
111
|
}): Promise<{
|
|
106
112
|
content: string;
|
|
107
113
|
}>;
|
|
@@ -126,6 +132,8 @@ export declare class KokimokiAiService {
|
|
|
126
132
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
127
133
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
128
134
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
135
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
136
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
129
137
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
130
138
|
* This helps define the AI's role, personality, and constraints.
|
|
131
139
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -134,17 +142,21 @@ export declare class KokimokiAiService {
|
|
|
134
142
|
* higher values make it more creative and varied.
|
|
135
143
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
136
144
|
* Controls the length of the AI's output.
|
|
145
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
146
|
+
* Allows the AI to analyze images and generate structured JSON based on them.
|
|
137
147
|
*
|
|
138
148
|
* @returns A promise that resolves to the parsed JSON object generated by the AI.
|
|
139
149
|
*
|
|
140
150
|
* @throws An error object if the API request fails or if the response is not valid JSON.
|
|
141
151
|
*/
|
|
142
152
|
generateJson<T extends object>(req: {
|
|
143
|
-
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
|
|
153
|
+
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3-pro-preview";
|
|
144
154
|
systemPrompt?: string;
|
|
145
155
|
userPrompt: string;
|
|
146
156
|
temperature?: number;
|
|
147
157
|
maxTokens?: number;
|
|
158
|
+
/** Image URLs to include with the user prompt (Gemini models only) */
|
|
159
|
+
imageUrls?: string[];
|
|
148
160
|
}): Promise<T>;
|
|
149
161
|
/**
|
|
150
162
|
* Modify an image using the AI service.
|
|
@@ -69,6 +69,8 @@ export class KokimokiAiService {
|
|
|
69
69
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
70
70
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
71
71
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
72
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
73
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
72
74
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
73
75
|
* This helps define the AI's role, personality, and constraints.
|
|
74
76
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -77,6 +79,8 @@ export class KokimokiAiService {
|
|
|
77
79
|
* higher values make it more creative and varied.
|
|
78
80
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
79
81
|
* Controls the length of the AI's output.
|
|
82
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
83
|
+
* Allows the AI to analyze and respond based on the provided images.
|
|
80
84
|
*
|
|
81
85
|
* @returns A promise that resolves to an object containing the AI-generated response.
|
|
82
86
|
* @returns {string} content The text content of the AI's response.
|
|
@@ -127,6 +131,8 @@ export class KokimokiAiService {
|
|
|
127
131
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
128
132
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
129
133
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
134
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
135
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
130
136
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
131
137
|
* This helps define the AI's role, personality, and constraints.
|
|
132
138
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -135,6 +141,8 @@ export class KokimokiAiService {
|
|
|
135
141
|
* higher values make it more creative and varied.
|
|
136
142
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
137
143
|
* Controls the length of the AI's output.
|
|
144
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
145
|
+
* Allows the AI to analyze images and generate structured JSON based on them.
|
|
138
146
|
*
|
|
139
147
|
* @returns A promise that resolves to the parsed JSON object generated by the AI.
|
|
140
148
|
*
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const KOKIMOKI_APP_VERSION = "2.
|
|
1
|
+
export declare const KOKIMOKI_APP_VERSION = "2.1.1";
|
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.
|
|
2
|
+
export const KOKIMOKI_APP_VERSION = '2.1.1';
|