AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

🗯 Running locally, keeps asking for API key

Open SAI-sentinal-ai opened this issue 1 year ago • 6 comments

Hello, I am running on localhost but it keeps asking for my API key. Is that expected behaviour?

SAI-sentinal-ai avatar Apr 12 '23 20:04 SAI-sentinal-ai

Same here

carlaiau avatar Apr 12 '23 23:04 carlaiau

It should not be, I'll work on a fix and submit a PR today or tomorrow

astelmach01 avatar Apr 13 '23 00:04 astelmach01

https://github.com/reworkd/AgentGPT/pull/67

astelmach01 avatar Apr 13 '23 00:04 astelmach01

Why not just set OPENAI_API_KEY as empty key in env file . Wouldn't that do the trick ? (just asking) . Since the PR was just adding in functionality to use an empty string as a value ?

gauravsaini avatar Apr 13 '23 00:04 gauravsaini

How would an empty key fix anything?

astelmach01 avatar Apr 13 '23 00:04 astelmach01

Heyo! Yeah functionality will be catered to the product side most often - leading to some dev annoyances like this, sounds like we have a fix in though!

asim-shrestha avatar Apr 13 '23 02:04 asim-shrestha

This is fixed in main :)

awtkns avatar Apr 16 '23 14:04 awtkns

Same situation! I have pulled the latest. [commit id] 13ea8bf661bbc0cba11e8717d41afdf75964fa61

xunjianxiang avatar Apr 19 '23 06:04 xunjianxiang