bakks/butterfish

[nit] When specifying a locally hosted api endpoint, butterfish still demands an API token for OpenAI

Opened this issue · 1 comments

Problem Statement

Upon first usage, I pointed butterfish to a locally run service, despite this, butterfish still asked for a key for OpenAI.

 projects % butterfish shell -u 'http://localhost:8080/v1'
Butterfish requires an OpenAI API key, please visit https://beta.openai.com/account/api-keys to create one and paste it below (it should start with sk-):
sk-foobar

Saving token to /Users/skarbek/.config/butterfish/butterfish.env
Token saved, you can edit it at any time at /Users/skarbek/.config/butterfish/butterfish.env

Using a fake token is suitable for my needs as the error goes away and butterfish is then able to work just fine. This is only a nitpick considering we aren't making calls out to OpenAI. This UX experience could be improved a tiny bit.

Agree with this