Skip to content

fix: strip echoed <text> wrapper tags from model output - #51

Merged
JaplinChen merged 1 commit into
masterfrom
fix/strip-echoed-text-wrapper
Aug 18, 2026
Merged

JaplinChen merged 1 commit into
masterfrom
fix/strip-echoed-text-wrapper

Conversation

@JaplinChen

Copy link
Copy Markdown
Owner

Summary

  • Some models (e.g. Groq openai/gpt-oss-120b) echo the prompt's <text>...</text> wrapper tags into the translation output (seen on zh→vi).
  • Strip the echoed wrapper once in the shared return path, covering all providers/models: translate_service.dart (Flutter) and translation_providers.py (dev mirror).

Verification

  • flutter analyze: No issues found
  • flutter test: +102 All tests passed

🤖 Generated with Claude Code

@JaplinChen
JaplinChen merged commit a3f9a66 into master Aug 18, 2026
2 checks passed
@JaplinChen
JaplinChen deleted the fix/strip-echoed-text-wrapper branch August 18, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant