https://github.com/katkodeorg/katkode_ai_manager
A flutter library to let users use their own LLM keys to access AI models
https://github.com/katkodeorg/katkode_ai_manager
ai-key-store ai-store flutter katkode-ai-manager llm-key-store
Last synced: about 2 months ago
JSON representation
A flutter library to let users use their own LLM keys to access AI models
- Host: GitHub
- URL: https://github.com/katkodeorg/katkode_ai_manager
- Owner: katkodeorg
- License: mit
- Created: 2024-09-25T17:53:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-14T20:30:32.000Z (about 1 year ago)
- Last Synced: 2026-04-27T16:23:25.068Z (about 2 months ago)
- Topics: ai-key-store, ai-store, flutter, katkode-ai-manager, llm-key-store
- Language: Dart
- Homepage: https://pub.dev/packages/katkode_ai_manager
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# katkode_ai_manager
[](https://pub.dartlang.org/packages/katkode_ai_manager)
A flutter library to let users use their own LLM keys to access AI models
## Sponsors
Consider supporting this project by becoming a sponsor. Your logo will show up here with a link to your website.
## How to use
To use this plugin, add `katkode_ai_manager` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
Add a new model to the store:
```dart
AIModel aiModel = await ManagerAI.createAIModel(
AiModelType.gemini,
"xxx",
);
bool testResult = await aiModel.testModel();
if (testResult) {
await ManagerAI.addModel(aiModel);
// Success
} else {
// Fail
}
````
To use the model:
```dart
AIModel? aiModel = await ManagerAI.getDefaultModel();
String? aiResponse = await aiModel.getTextAndDocumentCompletion(
"This is an exmaple prompt",
[], // file bytes list
);
```
## How it works
Uses the LLM API to access the AI models.
## FAQ
### How do I add additional AI model types?
Send a pull request with the new AI model and the corresponding test.