vetrag/test_copy.sh

21 lines
803 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

curl -X POST http://localhost:11434/api/chat \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen3:latest",
"messages": [
{
"role": "user",
"content": "Translate [\"megy a kutyam hasa\"] to English, then output only 35 comma-separated veterinary-related keywords derived strictly from [\"megy a kutyam hasa\"]. example output [\"keyword1\",\"keyword2\"] No other text, no extra punctuation, no explanations, no quotes, no formatting."
}
],
"stream": false,
"format": {
"type": "object",
"properties": {
"translate": { "type": "string" },
"keyword": { "type": "array", "items": { "type": "string" } },
"animal": { "type": "string" }
},
"required": ["translate", "keyword", "animal"]
}
}'