Skip to content

Commit

Permalink
fix: load ChatKnights avatar via base64
Browse files Browse the repository at this point in the history
Improve loading speed under suboptimal internet connections by using bundled assets.
  • Loading branch information
popoway committed Feb 6, 2024
1 parent 58a87dd commit 1496fc9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added assets/icon/icon-scaled-128px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/chatknights.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _MyChatPageState extends State<MyChatPage> {
firstName: 'ChatKnights',
lastName: 'AI',
imageUrl:
"https://github.com/popoway/goknights/blob/main/assets/icon/icon-scaled.png?raw=true");
"https://github.com/popoway/goknights/blob/main/assets/icon/icon-scaled-128px.png?raw=true");
final _endpoint = FlutterConfig.get('OPENAI_API_ENDPOINT');
final _key = FlutterConfig.get('OPENAI_API_KEY');
final _model = FlutterConfig.get('OPENAI_API_MODEL');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2.2.1+47
version: 2.2.1+48

environment:
sdk: '>=3.1.0 <4.0.0'
Expand Down

0 comments on commit 1496fc9

Please sign in to comment.