@marizmelo/llm-cli 0.0.7 → 0.0.8
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/bundle/gemini.js +9 -5
- package/package.json +1 -1
package/bundle/gemini.js
CHANGED
|
@@ -139658,8 +139658,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
139658
139658
|
var init_git_commit = __esm({
|
|
139659
139659
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
139660
139660
|
"use strict";
|
|
139661
|
-
GIT_COMMIT_INFO = "
|
|
139662
|
-
CLI_VERSION = "0.0.
|
|
139661
|
+
GIT_COMMIT_INFO = "9d0d1bcf";
|
|
139662
|
+
CLI_VERSION = "0.0.8";
|
|
139663
139663
|
}
|
|
139664
139664
|
});
|
|
139665
139665
|
|
|
@@ -141934,10 +141934,12 @@ var init_ollama_provider = __esm({
|
|
|
141934
141934
|
async generateContent(request3, userPromptId) {
|
|
141935
141935
|
const messages = this.convertToOllamaMessages(request3);
|
|
141936
141936
|
const tools = this.toolsSupported ? this.convertToOllamaTools(request3) : [];
|
|
141937
|
+
const wantsJson = request3.config?.responseMimeType === "application/json";
|
|
141937
141938
|
const ollamaRequest = {
|
|
141938
141939
|
model: this.model,
|
|
141939
141940
|
messages,
|
|
141940
141941
|
stream: false,
|
|
141942
|
+
...wantsJson ? { format: "json" } : {},
|
|
141941
141943
|
...tools.length > 0 ? { tools } : {},
|
|
141942
141944
|
options: this.buildOptions(request3)
|
|
141943
141945
|
};
|
|
@@ -141960,10 +141962,12 @@ var init_ollama_provider = __esm({
|
|
|
141960
141962
|
async generateContentStream(request3, userPromptId) {
|
|
141961
141963
|
const messages = this.convertToOllamaMessages(request3);
|
|
141962
141964
|
const tools = this.toolsSupported ? this.convertToOllamaTools(request3) : [];
|
|
141965
|
+
const wantsJson = request3.config?.responseMimeType === "application/json";
|
|
141963
141966
|
const ollamaRequest = {
|
|
141964
141967
|
model: this.model,
|
|
141965
141968
|
messages,
|
|
141966
141969
|
stream: true,
|
|
141970
|
+
...wantsJson ? { format: "json" } : {},
|
|
141967
141971
|
...tools.length > 0 ? { tools } : {},
|
|
141968
141972
|
options: this.buildOptions(request3)
|
|
141969
141973
|
};
|
|
@@ -142396,7 +142400,7 @@ function createContentGeneratorConfig(config, authType) {
|
|
|
142396
142400
|
return contentGeneratorConfig;
|
|
142397
142401
|
}
|
|
142398
142402
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
142399
|
-
const version2 = "0.0.
|
|
142403
|
+
const version2 = "0.0.8";
|
|
142400
142404
|
const userAgent2 = `GeminiCLI/${version2} (${process.platform}; ${process.arch})`;
|
|
142401
142405
|
const baseHeaders = {
|
|
142402
142406
|
"User-Agent": userAgent2
|
|
@@ -274758,7 +274762,7 @@ async function getPackageJson() {
|
|
|
274758
274762
|
// packages/cli/src/utils/version.ts
|
|
274759
274763
|
async function getCliVersion() {
|
|
274760
274764
|
const pkgJson = await getPackageJson();
|
|
274761
|
-
return "0.0.
|
|
274765
|
+
return "0.0.8";
|
|
274762
274766
|
}
|
|
274763
274767
|
|
|
274764
274768
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -274810,7 +274814,7 @@ init_open();
|
|
|
274810
274814
|
import process30 from "node:process";
|
|
274811
274815
|
|
|
274812
274816
|
// packages/cli/src/generated/git-commit.ts
|
|
274813
|
-
var GIT_COMMIT_INFO2 = "
|
|
274817
|
+
var GIT_COMMIT_INFO2 = "9d0d1bcf";
|
|
274814
274818
|
|
|
274815
274819
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
274816
274820
|
init_dist3();
|