@ax-llm/ax 12.0.23 → 12.0.24
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/index.cjs +2 -1
- package/index.cjs.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -4986,7 +4986,8 @@ var AxAIGoogleGemini = class extends AxBaseAI {
|
|
|
4986
4986
|
} else {
|
|
4987
4987
|
path = "publishers/google";
|
|
4988
4988
|
}
|
|
4989
|
-
|
|
4989
|
+
const tld = region === "global" ? "aiplatform" : `${region}-aiplatform`;
|
|
4990
|
+
apiURL = `https://${tld}.googleapis.com/v1/projects/${projectId}/locations/${region}/${path}`;
|
|
4990
4991
|
if (apiKey) {
|
|
4991
4992
|
headers = async () => ({ Authorization: `Bearer ${apiKey}` });
|
|
4992
4993
|
} else {
|