Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
166.45k stars 44.06k forks source link

Would like to see the running costs (OPEN_AI) for a session with AutoGPT #393

Closed timurista closed 12 months ago

timurista commented 1 year ago

Duplicates

Summary 💡

My current challenge is it's hard to know how much it's costing me to run autoGPT for each session (for OPEN_AI in particular)

If I knew how much it was costing me and the current cost per session I could make informed decisions about running in continuous mode or authorizing discrete tasks.

First it would be great just to see estimated costs per session.

Second, I would like to be able to set budget for each session with a soft/hard cap.

For example a soft cap of $2 would mean it leaves continuous mode when it nears $2 estimated cost and you see a warning. A hard cap would end the session for me, but is optional. If neither are provided it runs as expected.

Thanks, Tim

Examples 🌈

No response

Motivation 🔦

No response

koltregaskes commented 1 year ago

Refresh the OpenAI usage price while running?

mrharrison007 commented 1 year ago

Yes, a goal could be, don't spend more than 5.00 USD in OpenAI API account for this whatever.

Qoyyuum commented 1 year ago

Waiting on PR #762

timurista commented 1 year ago

Waiting on PR #762

I looked at PR @Qoyyuum. Thank you, this would be a big help. I do realize the pricing model for open AI can change in the future so this may not be the last PR in the area of cost estimation. But it's nice to have some idea of the ongoing spend. Appreciate the work!

Boostrix commented 1 year ago

In progress as part of: #4040

github-actions[bot] commented 12 months ago

This issue was closed automatically because it has been stale for 10 days with no activity.