@verbatra/sdk 0.13.0 → 0.13.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.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4725,12 +4725,13 @@ var geminiConfigSchema = z.object({
|
|
|
4725
4725
|
model: z.string().min(1),
|
|
4726
4726
|
maxOutputTokens: z.number().int().positive()
|
|
4727
4727
|
}).extend(requestTimeoutConfigSchema.shape).extend(localeMapConfigSchema.shape);
|
|
4728
|
+
var GEMINI_API_VERSION = "v1beta";
|
|
4728
4729
|
function createDefaultClient3(network) {
|
|
4729
4730
|
const transport = geminiTransport(network);
|
|
4730
4731
|
const apiKey = requireGeminiKey();
|
|
4731
4732
|
const loadClient = memoizeAsync(async () => {
|
|
4732
4733
|
const { GoogleGenAI } = await loadSdkModule("@google/genai", () => import('@google/genai'));
|
|
4733
|
-
return new GoogleGenAI({ apiKey, ...transport.options });
|
|
4734
|
+
return new GoogleGenAI({ apiKey, apiVersion: GEMINI_API_VERSION, ...transport.options });
|
|
4734
4735
|
});
|
|
4735
4736
|
return {
|
|
4736
4737
|
models: {
|