Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions assets/skills/share-recipe/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@ When the user asks to share, send, or forward a recipe,
call the `share_recipe` tool with the following parameters:

- title: the recipe title. String.
- content: the Thermomix steps only. Keep it under 800 characters — shorten step descriptions if needed to fit. String.

IMPORTANT: content MUST stay under 800 characters. If the recipe is long,
summarize each step briefly (e.g. "Mix 5min/speed 4/80°C" instead of full sentences).
- content: the full recipe with all Thermomix steps. String.
Comment thread
using-system marked this conversation as resolved.
1 change: 1 addition & 0 deletions lib/features/chat/presentation/conversation_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class _ConversationPageState extends ConsumerState<ConversationPage> {
tools: tools,
supportsFunctionCalls: toolRegistry.hasTools,
toolChoice: ToolChoice.auto,
maxFunctionBufferLength: 8000,
Comment thread
using-system marked this conversation as resolved.
);
break;
} catch (_) {
Expand Down
4 changes: 1 addition & 3 deletions lib/features/tools/handlers/share_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ class ShareHandler extends ToolHandler {
},
'content': {
'type': 'string',
'description':
'The recipe steps only, suitable for sharing, kept under '
'800 characters.',
'description': 'The full recipe with all steps.',
},
},
'required': ['title', 'content'],
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,10 @@ packages:
dependency: "direct main"
description:
name: flutter_gemma
sha256: "0bf39e165c34e9df38f1c4ed346d07e5b8e7bf14019abe994e88303a53edadf6"
sha256: "72485d8a319bb4c0c00262b1c0e901eb0f0a6f61db5cae7ebfc80e3b5983567a"
url: "https://pub.dev"
source: hosted
version: "0.13.5"
version: "0.13.6"
flutter_launcher_icons:
dependency: "direct dev"
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies:
flutter_riverpod: ^2.5.1
go_router: ^14.2.0
shared_preferences: ^2.3.0
flutter_gemma: ^0.13.5
flutter_gemma: ^0.13.6
sqflite: ^2.3.0
path: ^1.9.0
uuid: ^4.0.0
Expand Down