slang_gpt 0.11.0 slang_gpt: ^0.11.0 copied to clipboard
Use GPT to automatically translate at compile time. A tool for slang.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add slang_gpt
With Flutter:
$ flutter pub add slang_gpt
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
slang_gpt: ^0.11.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:slang_gpt/model/gpt_config.dart';
import 'package:slang_gpt/model/gpt_model.dart';
import 'package:slang_gpt/model/gpt_prompt.dart';
import 'package:slang_gpt/model/gpt_response.dart';
import 'package:slang_gpt/prompt/prompt.dart';
import 'package:slang_gpt/runner.dart';
import 'package:slang_gpt/util/locales.dart';
import 'package:slang_gpt/util/logger.dart';
import 'package:slang_gpt/util/maps.dart';