@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.js
CHANGED
|
@@ -4798,7 +4798,8 @@ var AxAIGoogleGemini = class extends AxBaseAI {
|
|
|
4798
4798
|
} else {
|
|
4799
4799
|
path = "publishers/google";
|
|
4800
4800
|
}
|
|
4801
|
-
|
|
4801
|
+
const tld = region === "global" ? "aiplatform" : `${region}-aiplatform`;
|
|
4802
|
+
apiURL = `https://${tld}.googleapis.com/v1/projects/${projectId}/locations/${region}/${path}`;
|
|
4802
4803
|
if (apiKey) {
|
|
4803
4804
|
headers = async () => ({ Authorization: `Bearer ${apiKey}` });
|
|
4804
4805
|
} else {
|