Skip to content

Commit

Permalink
Merge pull request #15 from Manifest-Holdings/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
Cooops authored Feb 18, 2025
2 parents 8b5d0a3 + d5209d5 commit 852b7cf
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
9 changes: 5 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,11 @@ MEDIUM_LMSTUDIO_MODEL= # Default: hermes-3-llama-3.1-8b
LARGE_LMSTUDIO_MODEL= # Default: hermes-3-llama-3.1-8b

# Remaining Provider Configurations
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
ALI_BAILIAN_API_KEY= # Ali Bailian API Key
NANOGPT_API_KEY= # NanoGPT API Key
TOGETHER_API_KEY= # Together API Key
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
ALI_BAILIAN_API_KEY= # Ali Bailian API Key
NANOGPT_API_KEY= # NanoGPT API Key
TOGETHER_API_KEY= # Together API Key
TOGETHER_IMAGE_MODEL= # Default: black-forest-labs/FLUX.1-schnell

######################################
#### Crypto Plugin Configurations ####
Expand Down
2 changes: 1 addition & 1 deletion packages/client-discord/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ export class MessageManager {
const response = await generateShouldRespond({
runtime: this.runtime,
context: shouldRespondContext,
modelClass: ModelClass.SMALL,
modelClass: ModelClass.LARGE,
});

if (response === "RESPOND") {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-discord/src/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ export class VoiceManager extends EventEmitter {
const response = await generateShouldRespond({
runtime: this.runtime,
context: shouldRespondContext,
modelClass: ModelClass.SMALL,
modelClass: ModelClass.LARGE,
});

if (response === "RESPOND") {
Expand Down Expand Up @@ -890,7 +890,7 @@ export class VoiceManager extends EventEmitter {
const response = await generateMessageResponse({
runtime: this.runtime,
context,
modelClass: ModelClass.SMALL,
modelClass: ModelClass.LARGE,
});

response.source = "discord";
Expand Down
2 changes: 1 addition & 1 deletion packages/client-telegram/src/messageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ export class MessageManager {
const response = await generateShouldRespond({
runtime: this.runtime,
context: shouldRespondContext,
modelClass: ModelClass.SMALL,
modelClass: ModelClass.LARGE,
});

return response === "RESPOND";
Expand Down
2 changes: 1 addition & 1 deletion packages/client-twitter/src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class TwitterInteractionClient {
const shouldRespond = await generateShouldRespond({
runtime: this.runtime,
context: shouldRespondContext,
modelClass: ModelClass.MEDIUM,
modelClass: ModelClass.LARGE,
});

// Promise<"RESPOND" | "IGNORE" | "STOP" | null> {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ export class TwitterPostClient {
const response = await generateText({
runtime: this.runtime,
context,
modelClass: ModelClass.SMALL,
modelClass: ModelClass.LARGE,
});

const rawTweetContent = cleanJsonResponse(response);
Expand Down Expand Up @@ -709,7 +709,7 @@ export class TwitterPostClient {
const response = await generateText({
runtime: this.runtime,
context: options?.context || context,
modelClass: ModelClass.SMALL,
modelClass: ModelClass.LARGE,
});

elizaLogger.log("generate tweet content response:\n" + response);
Expand Down Expand Up @@ -833,7 +833,7 @@ export class TwitterPostClient {
const actionResponse = await generateTweetActions({
runtime: this.runtime,
context: actionContext,
modelClass: ModelClass.SMALL,
modelClass: ModelClass.LARGE,
});

if (!actionResponse) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const models: Models = {
name: "togethercomputer/m2-bert-80M-32k-retrieval",
},
[ModelClass.IMAGE]: {
name: "black-forest-labs/FLUX.1-schnell",
name: settings.TOGETHER_IMAGE_MODEL || "black-forest-labs/FLUX.1-schnell",
steps: 4,
},
},
Expand Down

0 comments on commit 852b7cf

Please sign in to comment.