careervivid 2.1.32 → 2.1.33
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.
|
@@ -99,12 +99,12 @@ export class QueryEngine {
|
|
|
99
99
|
// Vertex AI mode — uses gcloud Application Default Credentials
|
|
100
100
|
this.ai = new GoogleGenAI({ vertexai: true, project, location });
|
|
101
101
|
// Vertex AI uses a different model namespace
|
|
102
|
-
this.model = options.model || 'gemini-
|
|
102
|
+
this.model = options.model || 'gemini-1.5-flash';
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
105
|
// Gemini API mode — requires an API key
|
|
106
106
|
this.ai = new GoogleGenAI({ apiKey: apiKey || '' });
|
|
107
|
-
this.model = options.model || 'gemini-
|
|
107
|
+
this.model = options.model || 'gemini-1.5-flash';
|
|
108
108
|
}
|
|
109
109
|
this.systemInstruction = options.systemInstruction || CODING_AGENT_SYSTEM_PROMPT;
|
|
110
110
|
this.tools = options.tools || [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/configurator.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0D,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI3G,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKpD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;
|
|
1
|
+
{"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/configurator.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0D,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI3G,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKpD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;GAmBrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;GA+BtB,CAAC;AAEF,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAsEpD;AAED,wBAAsB,mBAAmB,CAAC,OAAO,GAAE,GAAQ,GAAG,OAAO,CAAC;IACpE,gBAAgB,EAAE,WAAW,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAiKD"}
|
|
@@ -3,33 +3,27 @@ import pkg from "enquirer";
|
|
|
3
3
|
import { loadConfig, saveConfig, setProviderKey, getProviderKey } from "../../config.js";
|
|
4
4
|
const { prompt } = pkg;
|
|
5
5
|
export const MODEL_CREDIT_COST = {
|
|
6
|
-
"gemini-
|
|
7
|
-
"gemini-
|
|
8
|
-
"gemini-
|
|
9
|
-
"gemini-
|
|
6
|
+
"gemini-2.0-flash-lite-preview-02-05": 0.5,
|
|
7
|
+
"gemini-1.5-flash": 1,
|
|
8
|
+
"gemini-2.0-flash": 1,
|
|
9
|
+
"gemini-1.5-pro": 2,
|
|
10
10
|
};
|
|
11
11
|
export const CV_MODELS = [
|
|
12
12
|
{
|
|
13
|
-
name: `⚡ gemini-
|
|
14
|
-
value: "gemini-
|
|
15
|
-
cost: 0.5,
|
|
16
|
-
careerVivid: true,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: `⚡ gemini-2.5-flash ${chalk.gray("[1 credit/turn — default]")}`,
|
|
20
|
-
value: "gemini-2.5-flash",
|
|
13
|
+
name: `⚡ gemini-2.0-flash ${chalk.gray("[1 credit/turn — default]")}`,
|
|
14
|
+
value: "gemini-2.0-flash",
|
|
21
15
|
cost: 1,
|
|
22
16
|
careerVivid: true,
|
|
23
17
|
},
|
|
24
18
|
{
|
|
25
|
-
name: `🚀 gemini-
|
|
26
|
-
value: "gemini-
|
|
27
|
-
cost:
|
|
19
|
+
name: `🚀 gemini-2.0-flash-lite ${chalk.gray("[0.5 credit/turn — fastest]")}`,
|
|
20
|
+
value: "gemini-2.0-flash-lite-preview-02-05",
|
|
21
|
+
cost: 0.5,
|
|
28
22
|
careerVivid: true,
|
|
29
23
|
},
|
|
30
24
|
{
|
|
31
|
-
name: `🧠 gemini-
|
|
32
|
-
value: "gemini-
|
|
25
|
+
name: `🧠 gemini-1.5-pro ${chalk.gray("[2 credits/turn — deep reasoning]")}`,
|
|
26
|
+
value: "gemini-1.5-pro",
|
|
33
27
|
cost: 2,
|
|
34
28
|
careerVivid: true,
|
|
35
29
|
},
|
|
@@ -15,8 +15,8 @@ export function registerAgentCommand(program) {
|
|
|
15
15
|
.option("--coding", "Enable full coding tool suite (file I/O, shell, search).")
|
|
16
16
|
.option("--resume", "Add resume tools — load and discuss your CareerVivid resume.")
|
|
17
17
|
.option("--jobs", "Add job-hunting tools (default — enabled automatically).")
|
|
18
|
-
.option("--flash", "Use gemini-
|
|
19
|
-
.option("--pro", "Use gemini-
|
|
18
|
+
.option("--flash", "Use gemini-2.0-flash (fast, 1 credit/turn).")
|
|
19
|
+
.option("--pro", "Use gemini-1.5-pro (recommended for complex tasks).")
|
|
20
20
|
.option("--think <budget>", "Enable Gemini thinking mode with the given token budget (e.g. 8192).", parseInt)
|
|
21
21
|
.option("--verbose", "Show thinking tokens in the output (requires --think or --pro).")
|
|
22
22
|
.option("--project <id>", "GCP project ID for Vertex AI mode (uses gcloud ADC, no API key needed).")
|
|
@@ -55,12 +55,12 @@ export function registerAgentCommand(program) {
|
|
|
55
55
|
let thinkingBudget;
|
|
56
56
|
let selectedProvider;
|
|
57
57
|
if (isPro) {
|
|
58
|
-
selectedModel = "gemini-
|
|
59
|
-
thinkingBudget = options.think ??
|
|
58
|
+
selectedModel = "gemini-1.5-pro";
|
|
59
|
+
thinkingBudget = options.think ?? 0;
|
|
60
60
|
selectedProvider = "careervivid";
|
|
61
61
|
}
|
|
62
62
|
else if (isFlash) {
|
|
63
|
-
selectedModel = "gemini-
|
|
63
|
+
selectedModel = "gemini-2.0-flash";
|
|
64
64
|
thinkingBudget = 0;
|
|
65
65
|
selectedProvider = "careervivid";
|
|
66
66
|
}
|
package/package.json
CHANGED