Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Wrapper script for translator model that filters out thinking tags
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: ./translate.sh \"text to translate\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run ollama and filter output
|
||||
ollama run translator "$1" 2>/dev/null | sed 's/<think>.*<\/think>//g' | sed '/^$/d' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
|
||||
Reference in New Issue
Block a user