fix: AI解析プロンプトの銘柄名補完バグを修正

- 銘柄名(name)と蔵元名(brand)はラベルの文字をそのまま使うよう明示
  「東魁」→「東魁盛」のような知識補完を禁止する指示を追加
- 全3プロンプト(画像解析・ハイブリッド・テキストのみ)に適用
- version: 1.0.27+34

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ponshu Developer 2026-04-11 08:58:02 +09:00
parent f3d6a92799
commit d23ee8ed77
2 changed files with 8 additions and 4 deletions

View File

@ -44,7 +44,10 @@ class GeminiService {
"manufacturingYearMonth": "2023.10"
}
null tasteStatsは必ず1-5
:
- "name" "brand"****使
- tasteStatsは必ず1-5
- null
''';
return _callProxyApi(
@ -88,9 +91,10 @@ $extractedText
}
:
- "name" "brand"****使
- tasteStats1-53
- alcoholContent, polishingRatio, sakeMeterValue
- null
- null
''';
return _callProxyApi(imagePaths: imagePaths, customPrompt: prompt);
@ -100,7 +104,7 @@ $extractedText
Future<SakeAnalysisResult> analyzeSakeText(String extractedText) async {
final prompt = '''
OCRで抽出された日本酒ラベルのテキスト情報を分析してください
"name""brand"使
:
"""

View File

@ -16,7 +16,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: 1.0.26+33
version: 1.0.27+34
environment:
sdk: ^3.10.1