AbanteAI / spice

accelerant
Apache License 2.0
4 stars 2 forks source link

Add way to pass in api keys to client #40

Open PCSwingle opened 7 months ago

PCSwingle commented 7 months ago

I think the best way to use Spice will definitely be to just have a .env, but for people who want to pass in specific api keys, how should we handle this? We could just have them pass in an env dictionary to the client, but that is slightly confusing since we wouldn't actually be changing the environment variables.

biobootloader commented 7 months ago

passing in a dict is good I think. Can call it api_variables or something and say it takes precedence over what's found in the env