ykhli / cat-town

A custom AI-town with cats. Based on https://github.com/a16z-infra/AI-town
https://cat-town.fly.dev/
MIT License
120 stars 10 forks source link

The apikey consume is too much?How to reduce it? #9

Open Formyselfonly opened 11 months ago

Formyselfonly commented 11 months ago

Details

How to change the code to recude the talking frequence?Such as to stop the talking every 20 seconds I thought maybe it's the related code to change the talking frequence here: image How to change the code to recude frequence?

Checklist - [X] ``convex/config.ts`` ⚠️ No Changes Made - [X] `convex/config.ts` ❌ Sandbox failed so I made additional changes - [X] ``package.json`` ⚠️ No Changes Made - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes - [X] `package.json` ❌ Sandbox failed so I made additional changes ![Flowchart](http://24.199.78.105:8082/public/db96d4e9adfdcd653d947e4acf515fe9a54ac15baeabea12553c64111bc9dd45_9_flowchart.svg)
sweep-ai[bot] commented 11 months ago
Sweeping

75%

Actions (click)


❌ Unable to Complete PR

I'm sorry, but it looks like an error has occurred. Try changing the issue description to re-trigger Sweep. If this error persists report it at https://discord.gg/sweep.

For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: 60304d584b).


Please look at the generated plan. If something looks wrong, please add more details to your issue.

File Path Proposed Changes
convex/config.ts Modify convex/config.ts with contents:
• Change the value of CONVERSATION_TIME_LIMIT to 20_000 to make the conversations stop every 20 seconds.

🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.