Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluent method to specify API key (multi tenancy) #69

Closed
binaryfire opened this issue Nov 10, 2023 · 3 comments
Closed

Fluent method to specify API key (multi tenancy) #69

binaryfire opened this issue Nov 10, 2023 · 3 comments

Comments

@binaryfire
Copy link

binaryfire commented Nov 10, 2023

Hi guys

Is there a clean way to use multiple api keys with this package? Use case is a multi-tenant app where users supply their own keys

Overriding config values feels a bit hacky and doesn’t always work well with Octane.

@pb30
Copy link
Contributor

pb30 commented Nov 10, 2023

Can always just use the underlying client https://github.com/openai-php/client

@binaryfire
Copy link
Author

True. I’ll do that 👍

@clementmas
Copy link

I'd rather rely on this package's default configuration than copy/pasting it into my Laravel app.

Is there any way to access the client object to call the withApiKey method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants