anasfik / openai

Dart/Flutter SDK for ChatGPT and all OpenAI APIs (GPT, Dall-e..)
https://pub.dev/packages/dart_openai
MIT License
593 stars 186 forks source link

multiple API keys #183

Open lukepighetti opened 5 months ago

lukepighetti commented 5 months ago

It looks like the key is a global setting via a static class setter OpenAI.apiKey = 'foo'

Is there any way to create multiple OpenAI clients using different API keys?

franboladoruiz commented 5 months ago

This other client supports your use case: