From 5f47c2e58899906bd3768d1960d4cb55a5a12bf0 Mon Sep 17 00:00:00 2001 From: poka Date: Mon, 9 Jan 2023 01:22:13 +0100 Subject: [PATCH] bump v0.0.1+2 --- lib/riverpods/openai.dart | 2 -- lib/screens/home.dart | 5 +++++ pubspec.yaml | 2 +- scripts/publish.sh | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/riverpods/openai.dart b/lib/riverpods/openai.dart index 5ef256f..8a59614 100644 --- a/lib/riverpods/openai.dart +++ b/lib/riverpods/openai.dart @@ -7,10 +7,8 @@ import 'package:openai_gpt3_api/completion.dart'; import 'package:openai_gpt3_api/openai_gpt3_api.dart'; class OpenAI { - // final openaiSecret; late GPT3 gpt; - // final prompt = TextEditingController(); final prompt = StateProvider((ref) => TextEditingController()); final isLoading = StateProvider((ref) => false); diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 6bf2555..ad83894 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -145,6 +145,11 @@ class _BoguiState extends ConsumerState { ), ), ), + const SizedBox(height: 5), + const Text( + 'ctrl + entrer', + style: TextStyle(fontSize: 12, fontWeight: FontWeight.w100), + ), const SizedBox(height: 40), ]), const Spacer(), diff --git a/pubspec.yaml b/pubspec.yaml index a4fd291..b15b1a9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: Qu'ils aillent tous se faire enculer. # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 0.0.0+1 +version: 0.0.1+2 environment: sdk: '>=2.18.6 <3.0.0' diff --git a/scripts/publish.sh b/scripts/publish.sh index 85a2544..147e9e1 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -7,12 +7,12 @@ OPENAI_SECRET_KEY=$1 flutter clean && flutter pub get -if [[ $1 == "html" ]]; then +if [[ $2 == "html" ]]; then rm -rf /home/poka/dev/bogui/build/web && flutter build web --web-renderer html --dart-define=OPENAPI_SECRET_KEY=${OPENAI_SECRET_KEY} ssh -p 10322 poka@p2p.legal 'rm -rf /home/poka/bogui-html && mkdir /home/poka/bogui-html' rs /home/poka/dev/bogui/build/web poka@p2p.legal:/home/poka/bogui-html/ 10322 else rm -rf /home/poka/dev/bogui/build/web && flutter build web --web-renderer canvaskit --dart-define=OPENAPI_SECRET_KEY=${OPENAI_SECRET_KEY} - ssh -p 10322 poka@p2p.legal 'rm -rf /home/poka/bogui-web && mkdir /home/poka/bogui-web' + ssh -p 10322 poka@p2p.legal 'rm -rf /home/poka/bogui && mkdir /home/poka/bogui' rs /home/poka/dev/bogui/build/web poka@p2p.legal:/home/poka/bogui/ 10322 fi