gemini_ai_chat 0.0.5 gemini_ai_chat: ^0.0.5 copied to clipboard
A Gemini Generative AI SDK that incorporates chat functionalities while adhering to clean architecture principles.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add gemini_ai_chat
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
gemini_ai_chat: ^0.0.5
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:gemini_ai_chat/config/gemini_ai_configuration.dart';
import 'package:gemini_ai_chat/constants/gemini_ai_constants.dart';
import 'package:gemini_ai_chat/gemini_ai.dart';
import 'package:gemini_ai_chat/models/gemini_ai_http_response.dart';
import 'package:gemini_ai_chat/models/gemini_ai_response.dart';
import 'package:gemini_ai_chat/models/gemini_ai_response_transporter.dart';
import 'package:gemini_ai_chat/safety_regulations/gemini_ai_safety_category.dart';
import 'package:gemini_ai_chat/safety_regulations/gemini_ai_safety_settings.dart';
import 'package:gemini_ai_chat/safety_regulations/gemini_ai_safety_threshold.dart';
import 'package:gemini_ai_chat/services/gemini_ai_service.dart';
import 'package:gemini_ai_chat/utils/gemini_ai_file_converter.dart';
import 'package:gemini_ai_chat/utils/gemini_ai_string_utils.dart';