Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Question]: How do I change the OpenAI api key?

Open bgitit opened this issue 1 year ago • 4 comments

What is your question?

I've searched discussions. How do I change the OpenAI api key on windows11 device?

bgitit avatar Mar 28 '24 14:03 bgitit

Run --setup again

xssdoctor avatar Mar 28 '24 15:03 xssdoctor

So, i was able to add api keys for openai, claude, youtube and then run fabric --help, which shows me the options but also shows me this warning...which I'm sure I need to correct before moving forward: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)

Are you running this in wsl? I just installed ffmpeg (and its dependencies) with sudo apt install ffmpeg and that resolved that error. I can't imagine what it actually would use ffmpeg for though, I would guess that regular usage of fabric wouldn't run into any potential issues that not having ffmpeg would cause.

If you're not using wsl, then you would just need to install ffmpeg however you want and ensure that the directory that the executable is in is on your path.

ryankupk avatar Mar 30 '24 00:03 ryankupk

I downloaded ffmpeg to a folder and then added the location to the PATH in environmental values the restarted the terminal, (in my case also restarted Visual Studio) However I still cannot get the connection to OpenAI to work see my Issue Post.

Editing Path
apic2

Where I put ffmpeg apic1

grayerbeard avatar Apr 07 '24 09:04 grayerbeard