@tstdl/base 0.93.190 → 0.93.191
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/ai/genkit/module.d.ts +2 -0
- package/ai/genkit/module.js +5 -2
- package/package.json +5 -5
package/ai/genkit/module.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export declare class GenkitModuleOptions {
|
|
|
27
27
|
plugins?: GenkitOptions['plugins'];
|
|
28
28
|
/** Default Genkit options */
|
|
29
29
|
options?: Omit<GenkitOptions, 'plugins'>;
|
|
30
|
+
/** Gemini model configuration default options */
|
|
31
|
+
modelOptions?: GeminiConfig;
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* Configures the {@link AiService}.
|
package/ai/genkit/module.js
CHANGED
|
@@ -20,6 +20,8 @@ export class GenkitModuleOptions {
|
|
|
20
20
|
plugins;
|
|
21
21
|
/** Default Genkit options */
|
|
22
22
|
options;
|
|
23
|
+
/** Gemini model configuration default options */
|
|
24
|
+
modelOptions;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Configures the {@link AiService}.
|
|
@@ -61,10 +63,11 @@ export function injectGenkit(options) {
|
|
|
61
63
|
].filter(isNotNull),
|
|
62
64
|
});
|
|
63
65
|
}
|
|
64
|
-
function injectModel(
|
|
66
|
+
function injectModel(name, config) {
|
|
65
67
|
const moduleOptions = inject(GenkitModuleOptions, undefined, { optional: true }) ?? {};
|
|
66
68
|
const provider = isDefined(moduleOptions.vertex) ? vertexAI : googleAI;
|
|
67
|
-
|
|
69
|
+
const mergedConfig = { ...moduleOptions.modelOptions, ...config };
|
|
70
|
+
return provider.model(name, mergedConfig);
|
|
68
71
|
}
|
|
69
72
|
const _injectModel = injectModel;
|
|
70
73
|
export function injectMultiLocationModel(model, config) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.93.
|
|
3
|
+
"version": "0.93.191",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
"type-fest": "^5.5"
|
|
154
154
|
},
|
|
155
155
|
"peerDependencies": {
|
|
156
|
-
"@aws-sdk/client-s3": "^3.
|
|
157
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
156
|
+
"@aws-sdk/client-s3": "^3.1024",
|
|
157
|
+
"@aws-sdk/s3-request-presigner": "^3.1024",
|
|
158
158
|
"@genkit-ai/google-genai": "^1.31",
|
|
159
159
|
"@google-cloud/storage": "^7.19",
|
|
160
160
|
"@toon-format/toon": "^2.1.0",
|
|
@@ -190,13 +190,13 @@
|
|
|
190
190
|
"@types/luxon": "3.7",
|
|
191
191
|
"@types/mjml": "4.7",
|
|
192
192
|
"@types/node": "25",
|
|
193
|
-
"@types/nodemailer": "
|
|
193
|
+
"@types/nodemailer": "8.0",
|
|
194
194
|
"@types/pg": "8.20",
|
|
195
195
|
"@vitest/coverage-v8": "4.1",
|
|
196
196
|
"@vitest/ui": "4.1",
|
|
197
197
|
"concurrently": "9.2",
|
|
198
198
|
"drizzle-kit": "0.31",
|
|
199
|
-
"eslint": "10.
|
|
199
|
+
"eslint": "10.2",
|
|
200
200
|
"globals": "17.4",
|
|
201
201
|
"tsc-alias": "1.8",
|
|
202
202
|
"typedoc-github-wiki-theme": "2.1",
|