diff --git a/assets/skills/share-recipe/SKILL.md b/assets/skills/share-recipe/SKILL.md index 2d6820d..ce51a04 100644 --- a/assets/skills/share-recipe/SKILL.md +++ b/assets/skills/share-recipe/SKILL.md @@ -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. diff --git a/lib/features/chat/presentation/conversation_page.dart b/lib/features/chat/presentation/conversation_page.dart index 0a92102..a5a47eb 100644 --- a/lib/features/chat/presentation/conversation_page.dart +++ b/lib/features/chat/presentation/conversation_page.dart @@ -212,6 +212,7 @@ class _ConversationPageState extends ConsumerState { tools: tools, supportsFunctionCalls: toolRegistry.hasTools, toolChoice: ToolChoice.auto, + maxFunctionBufferLength: 8000, ); break; } catch (_) { diff --git a/lib/features/tools/handlers/share_handler.dart b/lib/features/tools/handlers/share_handler.dart index 517a68f..bc3f77c 100644 --- a/lib/features/tools/handlers/share_handler.dart +++ b/lib/features/tools/handlers/share_handler.dart @@ -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'], diff --git a/pubspec.lock b/pubspec.lock index 93c5a09..036f1cf 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index 9240d02..2ed7723 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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