@getpochi/cli 0.5.82 → 0.5.83
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/cli.js +13 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -388087,7 +388087,7 @@ var AnthropicModelSettings = ExtendedModelSettings.extend({
|
|
|
388087
388087
|
});
|
|
388088
388088
|
var GoogleVertexModel = v4_default.union([
|
|
388089
388089
|
v4_default.object({
|
|
388090
|
-
serviceAccountKey: v4_default.string(),
|
|
388090
|
+
serviceAccountKey: v4_default.string().default(process.env.POCHI_VERTEX_SERVICE_ACCOUNT_KEY ?? ""),
|
|
388091
388091
|
location: v4_default.string()
|
|
388092
388092
|
}),
|
|
388093
388093
|
v4_default.object({
|
|
@@ -388096,8 +388096,8 @@ var GoogleVertexModel = v4_default.union([
|
|
|
388096
388096
|
location: v4_default.string()
|
|
388097
388097
|
}),
|
|
388098
388098
|
v4_default.object({
|
|
388099
|
-
issueUrl: v4_default.string().
|
|
388100
|
-
modelUrl: v4_default.string().
|
|
388099
|
+
issueUrl: v4_default.string().default(process.env.POCHI_VERTEX_ISSUE_URL ?? ""),
|
|
388100
|
+
modelUrl: v4_default.string().default(process.env.POCHI_VERTEX_MODEL_URL ?? "")
|
|
388101
388101
|
})
|
|
388102
388102
|
]);
|
|
388103
388103
|
var GoogleVertexTuningModelSettings = BaseModelSettings.extend({
|
|
@@ -404498,6 +404498,10 @@ async function processContentOutput(store, output2, signal2) {
|
|
|
404498
404498
|
content: await Promise.all(content)
|
|
404499
404499
|
};
|
|
404500
404500
|
}
|
|
404501
|
+
if (typeof output2 === "object" && output2 !== null && "toolResult" in output2) {
|
|
404502
|
+
const { toolResult, ...rest } = output2;
|
|
404503
|
+
return rest;
|
|
404504
|
+
}
|
|
404501
404505
|
return output2;
|
|
404502
404506
|
}
|
|
404503
404507
|
var ContentOutput = zod_default.object({
|
|
@@ -404614,7 +404618,7 @@ var {
|
|
|
404614
404618
|
// package.json
|
|
404615
404619
|
var package_default = {
|
|
404616
404620
|
name: "@getpochi/cli",
|
|
404617
|
-
version: "0.5.
|
|
404621
|
+
version: "0.5.83",
|
|
404618
404622
|
type: "module",
|
|
404619
404623
|
bin: {
|
|
404620
404624
|
pochi: "src/cli.ts"
|
|
@@ -445526,7 +445530,7 @@ function createVertexModel(vertex2, modelId) {
|
|
|
445526
445530
|
privateKeyId: service_account_key.private_key_id,
|
|
445527
445531
|
privateKey: service_account_key.private_key
|
|
445528
445532
|
},
|
|
445529
|
-
fetch: createPatchedFetchForFinetune()
|
|
445533
|
+
fetch: isEndpointModelId(modelId) ? createPatchedFetchForFinetune() : undefined
|
|
445530
445534
|
})(modelId);
|
|
445531
445535
|
}
|
|
445532
445536
|
if ("accessToken" in vertex2) {
|
|
@@ -445535,7 +445539,7 @@ function createVertexModel(vertex2, modelId) {
|
|
|
445535
445539
|
project: projectId,
|
|
445536
445540
|
location: location3,
|
|
445537
445541
|
baseURL: getBaseURL2(location3, projectId),
|
|
445538
|
-
fetch: createPatchedFetchForFinetune(accessToken)
|
|
445542
|
+
fetch: isEndpointModelId(modelId) ? createPatchedFetchForFinetune(accessToken) : undefined
|
|
445539
445543
|
})(modelId);
|
|
445540
445544
|
}
|
|
445541
445545
|
if ("issueUrl" in vertex2) {
|
|
@@ -445567,6 +445571,9 @@ function createVertexModel(vertex2, modelId) {
|
|
|
445567
445571
|
}
|
|
445568
445572
|
return;
|
|
445569
445573
|
}
|
|
445574
|
+
function isEndpointModelId(modelId) {
|
|
445575
|
+
return /^\d+$/.test(modelId);
|
|
445576
|
+
}
|
|
445570
445577
|
|
|
445571
445578
|
// ../livekit/src/chat/models/google-vertex-tuning.ts
|
|
445572
445579
|
function createGoogleVertexTuningModel(llm) {
|