genlayer 0.13.0 → 0.14.0

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/.env.example CHANGED
@@ -63,6 +63,12 @@ HEURISTAIURL='https://llm-gateway.heurist.xyz'
63
63
  HEURISTAIMODELSURL='https://raw.githubusercontent.com/heurist-network/heurist-models/main/models.json'
64
64
  HEURISTAIAPIKEY='<add_your_heuristai_api_key_here>'
65
65
 
66
+ # If you want to use Google AI LLMs, add your key here
67
+ GEMINI_API_KEY= '<add_your_gemini_api_key_here>'
68
+
69
+ # If you want to use XAI LLMs, add your key here
70
+ XAI_API_KEY= '<add_your_xai_api_key_here>'
71
+
66
72
  # Validator Configuration
67
73
  # JSON array of initial validators to be created on startup.
68
74
  # Example: VALIDATORS_CONFIG_JSON = '[{"stake": 100, "provider": "openai", "model": "gpt-4o", "amount": 2}, {"stake": 200, "provider": "anthropic", "model": "claude-3-haiku-20240307", "amount": 1}]'
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.0 (2025-04-25)
4
+
5
+ ### Features
6
+
7
+ * adding gemini and XAI ([#216](https://github.com/yeagerai/genlayer-cli/issues/216)) ([01310b2](https://github.com/yeagerai/genlayer-cli/commit/01310b2c4856880d8b4209a8b659445bf6d4d501))
8
+
3
9
  ## 0.13.0 (2025-04-24)
4
10
 
5
11
  ### Features
package/dist/index.js CHANGED
@@ -16853,7 +16853,7 @@ var require_semver2 = __commonJS({
16853
16853
  import { program } from "commander";
16854
16854
 
16855
16855
  // package.json
16856
- var version = "0.13.0";
16856
+ var version = "0.14.0";
16857
16857
  var package_default = {
16858
16858
  name: "genlayer",
16859
16859
  version,
@@ -16982,6 +16982,18 @@ var AI_PROVIDERS_CONFIG = {
16982
16982
  hint: '(You will need to provide an API key. Get free API credits at https://dev-api-form.heurist.ai/ with referral code: "genlayer")',
16983
16983
  envVar: "HEURISTAIAPIKEY",
16984
16984
  cliOptionValue: "heuristai"
16985
+ },
16986
+ geminiai: {
16987
+ name: "Gemini",
16988
+ hint: "(You will need to provide an API key.)",
16989
+ envVar: "GEMINI_API_KEY",
16990
+ cliOptionValue: "geminiai"
16991
+ },
16992
+ xai: {
16993
+ name: "XAI",
16994
+ hint: "(You will need to provide an API key)",
16995
+ envVar: "XAI_API_KEY",
16996
+ cliOptionValue: "xai"
16985
16997
  }
16986
16998
  };
16987
16999
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genlayer",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "GenLayer Command Line Tool",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -23,8 +23,8 @@ export type RunningPlatform = (typeof AVAILABLE_PLATFORMS)[number];
23
23
  export const STARTING_TIMEOUT_WAIT_CYLCE = 2000;
24
24
  export const STARTING_TIMEOUT_ATTEMPTS = 120;
25
25
 
26
- export type AiProviders = "ollama" | "openai" | "heuristai";
27
- export type AiProvidersEnvVars = "ollama" | "OPENAIKEY" | "HEURISTAIAPIKEY";
26
+ export type AiProviders = "ollama" | "openai" | "heuristai" | "geminiai" | "xai";
27
+ export type AiProvidersEnvVars = "ollama" | "OPENAIKEY" | "HEURISTAIAPIKEY" | "GEMINI_API_KEY" | "XAI_API_KEY";
28
28
  export type AiProvidersConfigType = {
29
29
  [key in AiProviders]: {name: string; hint: string; envVar?: AiProvidersEnvVars; cliOptionValue: string};
30
30
  };
@@ -47,4 +47,16 @@ export const AI_PROVIDERS_CONFIG: AiProvidersConfigType = {
47
47
  envVar: "HEURISTAIAPIKEY",
48
48
  cliOptionValue: "heuristai",
49
49
  },
50
+ geminiai: {
51
+ name: "Gemini",
52
+ hint: '(You will need to provide an API key.)',
53
+ envVar: "GEMINI_API_KEY",
54
+ cliOptionValue: "geminiai",
55
+ },
56
+ xai: {
57
+ name: "XAI",
58
+ hint: '(You will need to provide an API key)',
59
+ envVar: "XAI_API_KEY",
60
+ cliOptionValue: "xai",
61
+ },
50
62
  };