@rankcli/agent-runtime 0.0.19 → 0.0.20
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/index.js +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33778,6 +33778,11 @@ async function generatePDFReport(data, config = {}) {
|
|
|
33778
33778
|
return Buffer.from(html, "utf-8");
|
|
33779
33779
|
}
|
|
33780
33780
|
|
|
33781
|
+
// src/models.ts
|
|
33782
|
+
var GOOGLE_FAST = "gemini-3.7-flash";
|
|
33783
|
+
var GOOGLE_ENDPOINT = `https://generativelanguage.googleapis.com/v1beta/models/${GOOGLE_FAST}:generateContent`;
|
|
33784
|
+
var OPENAI_FLAGSHIP = "gpt-5.6";
|
|
33785
|
+
|
|
33781
33786
|
// src/geo/geo-tracker.ts
|
|
33782
33787
|
function detectMentions(text, config) {
|
|
33783
33788
|
const mentions = [];
|
|
@@ -33960,7 +33965,7 @@ function getProviderEndpoint(provider) {
|
|
|
33960
33965
|
case "anthropic":
|
|
33961
33966
|
return "https://api.anthropic.com/v1/messages";
|
|
33962
33967
|
case "google":
|
|
33963
|
-
return
|
|
33968
|
+
return GOOGLE_ENDPOINT;
|
|
33964
33969
|
case "perplexity":
|
|
33965
33970
|
return "https://api.perplexity.ai/chat/completions";
|
|
33966
33971
|
default:
|
|
@@ -33975,7 +33980,7 @@ async function queryProvider(provider, keyword, fetchFn) {
|
|
|
33975
33980
|
"Content-Type": "application/json"
|
|
33976
33981
|
},
|
|
33977
33982
|
body: JSON.stringify({
|
|
33978
|
-
model: provider === "openai" ?
|
|
33983
|
+
model: provider === "openai" ? OPENAI_FLAGSHIP : void 0,
|
|
33979
33984
|
messages: [
|
|
33980
33985
|
{
|
|
33981
33986
|
role: "user",
|
package/dist/index.mjs
CHANGED
|
@@ -30223,6 +30223,11 @@ async function generatePDFReport(data, config = {}) {
|
|
|
30223
30223
|
return Buffer.from(html, "utf-8");
|
|
30224
30224
|
}
|
|
30225
30225
|
|
|
30226
|
+
// src/models.ts
|
|
30227
|
+
var GOOGLE_FAST = "gemini-3.7-flash";
|
|
30228
|
+
var GOOGLE_ENDPOINT = `https://generativelanguage.googleapis.com/v1beta/models/${GOOGLE_FAST}:generateContent`;
|
|
30229
|
+
var OPENAI_FLAGSHIP = "gpt-5.6";
|
|
30230
|
+
|
|
30226
30231
|
// src/geo/geo-tracker.ts
|
|
30227
30232
|
function detectMentions(text, config) {
|
|
30228
30233
|
const mentions = [];
|
|
@@ -30405,7 +30410,7 @@ function getProviderEndpoint(provider) {
|
|
|
30405
30410
|
case "anthropic":
|
|
30406
30411
|
return "https://api.anthropic.com/v1/messages";
|
|
30407
30412
|
case "google":
|
|
30408
|
-
return
|
|
30413
|
+
return GOOGLE_ENDPOINT;
|
|
30409
30414
|
case "perplexity":
|
|
30410
30415
|
return "https://api.perplexity.ai/chat/completions";
|
|
30411
30416
|
default:
|
|
@@ -30420,7 +30425,7 @@ async function queryProvider(provider, keyword, fetchFn) {
|
|
|
30420
30425
|
"Content-Type": "application/json"
|
|
30421
30426
|
},
|
|
30422
30427
|
body: JSON.stringify({
|
|
30423
|
-
model: provider === "openai" ?
|
|
30428
|
+
model: provider === "openai" ? OPENAI_FLAGSHIP : void 0,
|
|
30424
30429
|
messages: [
|
|
30425
30430
|
{
|
|
30426
30431
|
role: "user",
|