@getpochi/cli 0.5.61 → 0.5.63

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -368971,7 +368971,7 @@ var {
368971
368971
  // package.json
368972
368972
  var package_default = {
368973
368973
  name: "@getpochi/cli",
368974
- version: "0.5.61",
368974
+ version: "0.5.63",
368975
368975
  type: "module",
368976
368976
  bin: {
368977
368977
  pochi: "src/cli.ts"
@@ -411578,7 +411578,9 @@ function createVertexModel(vertex2, modelId) {
411578
411578
  project: "placeholder",
411579
411579
  location: "placeholder",
411580
411580
  baseURL: "placeholder",
411581
- fetch: async (_input, requestInit) => {
411581
+ fetch: async (input2, requestInit) => {
411582
+ const url3 = typeof input2 === "string" ? input2 : input2 instanceof URL ? input2.toString() : input2.url;
411583
+ const lastSegment = url3.split("/").at(-1);
411582
411584
  const resp = await fetch(issueUrl, {
411583
411585
  headers: {
411584
411586
  "Metadata-Flavor": "Google"
@@ -411586,9 +411588,9 @@ function createVertexModel(vertex2, modelId) {
411586
411588
  }).then((x11) => x11.json());
411587
411589
  const headers = new Headers(requestInit?.headers);
411588
411590
  headers.append("Authorization", `Bearer ${resp.access_token}`);
411589
- return fetch(modelUrl, { ...requestInit, headers });
411591
+ return fetch(`${modelUrl}/${lastSegment}`, { ...requestInit, headers });
411590
411592
  }
411591
- })("placeholder");
411593
+ })(modelId);
411592
411594
  }
411593
411595
  return;
411594
411596
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpochi/cli",
3
- "version": "0.5.61",
3
+ "version": "0.5.63",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pochi": "dist/cli.js"