Skip to content

Commit 492ca47

Browse files
committedJan 5, 2025
Merge branch 'develop' of https://github.com/inferanetwork/eliza into HEAD
2 parents 76ca662 + ba3637f commit 492ca47

File tree

5 files changed

+3861
-0
lines changed

5 files changed

+3861
-0
lines changed
 

‎.env.example

+12
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ SMALL_HYPERBOLIC_MODEL= # Default: meta-llama/Llama-3.2-3B-Instruct
3737
MEDIUM_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-70B-Instruct
3838
LARGE_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-405-Instruct
3939

40+
41+
# Infera Configuration
42+
43+
INFERA_API_KEY= # visit api.infera.org/docs to obtain an API key under /signup_user
44+
INFERA_MODEL= # Default: llama3.2:latest
45+
INFERA_SERVER_URL= # Default: https://api.infera.org/
46+
47+
SMALL_INFERA_MODEL= #Recommended: llama3.2:latest
48+
MEDIUM_INFERA_MODEL= #Recommended: mistral-nemo:latest
49+
LARGE_INFERA_MODEL= #Recommended: mistral-small:latest
50+
51+
4052
# Livepeer configuration
4153
LIVEPEER_GATEWAY_URL= # Free inference gateways and docs: https://livepeer-eliza.com/
4254
LIVEPEER_IMAGE_MODEL= # Default: ByteDance/SDXL-Lightning

‎agent/src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ export function getTokenForProvider(
349349
character.settings?.secrets?.GOOGLE_GENERATIVE_AI_API_KEY ||
350350
settings.GOOGLE_GENERATIVE_AI_API_KEY
351351
);
352+
case ModelProviderName.INFERA:
353+
return (
354+
character.settings?.secrets?.INFERA_API_KEY ||
355+
settings.INFERA_API_KEY
356+
);
352357
default:
353358
const errorMessage = `Failed to get token - unsupported model provider: ${provider}`;
354359
elizaLogger.error(errorMessage);

0 commit comments

Comments
 (0)