Is your feature request related to a problem? Please describe.
Current I have observed that one need to set API kEY (either for claude, etc...) as env vars before calling those APIs. This is ok, however it is not scalable because it forces developers to set an environment variable. Some companies do not use env variables due to security concerns.
Describe the solution you'd like
I will suggest passing those keys as parameters and let the developer decide how he/she would like to set them or use them.
For instance openai.New(apiKey string) should suffice.
Is your feature request related to a problem? Please describe. Current I have observed that one need to set API kEY (either for claude, etc...) as env vars before calling those APIs. This is ok, however it is not scalable because it forces developers to set an environment variable. Some companies do not use env variables due to security concerns.
Describe the solution you'd like I will suggest passing those keys as parameters and let the developer decide how he/she would like to set them or use them. For instance
openai.New(apiKey string)
should suffice.