Skip to content

Commit

Permalink
memory tweaks / limits
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoindustries committed Jan 1, 2025
1 parent 82fa3a7 commit 050af24
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions characters/beaver.basin.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
"voice": {
"model": "en_US-male-medium"
},
"runtime": {
"conversationLength": 20
}
},
"tokenbound": {
Expand Down
3 changes: 3 additions & 0 deletions characters/rise.higher.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"stability": 0.7,
"similarity_boost": 0.8
}
},
"runtime": {
"conversationLength": 20
}
},
"responseLogic": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client-farcaster/src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class FarcasterInteractionManager {

const mentions = await this.client.getMentions({
fid: agentFid,
pageSize: 10,
pageSize: 5,
});

const agent = await this.client.getProfile(agentFid);
Expand Down
2 changes: 1 addition & 1 deletion packages/client-farcaster/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class FarcasterPostManager {

const { timeline } = await this.client.getTimeline({
fid,
pageSize: 10,
pageSize: 5,
});

this.cache.set("farcaster/timeline", timeline);
Expand Down
4 changes: 2 additions & 2 deletions packages/client-telegram/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const MESSAGE_CONSTANTS = {
MAX_MESSAGES: 50,
MAX_MESSAGES: 40,
RECENT_MESSAGE_COUNT: 5,
CHAT_HISTORY_COUNT: 10,
CHAT_HISTORY_COUNT: 8,
DEFAULT_SIMILARITY_THRESHOLD: 0.6,
DEFAULT_SIMILARITY_THRESHOLD_FOLLOW_UPS: 0.4,
INTEREST_DECAY_TIME: 5 * 60 * 1000, // 5 minutes
Expand Down

0 comments on commit 050af24

Please sign in to comment.