Skip to content

Commit

Permalink
Merge pull request #1948 from TrustlessComputer/eternal-ai-pr-chainid
Browse files Browse the repository at this point in the history
feat: support for eternalai provider can write request/response log info
  • Loading branch information
shakkernerd authored Jan 7, 2025
2 parents 7e0d7ea + fd2b450 commit 533eb51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ETERNALAI_URL=
ETERNALAI_MODEL= # Default: "neuralmagic/Meta-Llama-3.1-405B-Instruct-quantized.w4a16"
ETERNALAI_CHAIN_ID=45762 #Default: "45762"
ETERNALAI_API_KEY=
ETERNAL_AI_LOG_REQUEST=false #Default: false
ETERNALAI_LOG=false #Default: false

GROK_API_KEY= # GROK/xAI API Key
GROQ_API_KEY= # Starts with gsk_
Expand Down
2 changes: 1 addition & 1 deletion packages/core/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export async function generateText({
const fetching = await runtime.fetch(url, options);
if (
parseBooleanFromText(
runtime.getSetting("ETERNAL_AI_LOG_REQUEST")
runtime.getSetting("ETERNALAI_LOG")
)
) {
elizaLogger.info(
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export async function generateText({
const fetching = await runtime.fetch(url, options);
if (
parseBooleanFromText(
runtime.getSetting("ETERNAL_AI_LOG_REQUEST")
runtime.getSetting("ETERNALAI_LOG")
)
) {
elizaLogger.info(
Expand Down

0 comments on commit 533eb51

Please sign in to comment.