chat-permanent-status-stops-retrying.json 1.2 KB

12345678910111213141516171819202122232425262728
  1. {
  2. "name": "chat-permanent-status-stops-retrying",
  3. "description": "Groq documents 404 as permanent, so the node must stop at the first refusal instead of spending its retries. Pointed at this API's own /chat/completions, which does not exist and answers 404. With retryCount 2 a retrying node reports attempts 3; stopping reports 1.",
  4. "credentials": [
  5. {"key": "fake", "name": "zz test: groq permanent status", "type": "api_key",
  6. "data": {"keyValue": "not-a-real-key", "headerName": "Authorization", "valuePrefix": "Bearer "}}
  7. ],
  8. "nodes": [
  9. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  10. {"id": "n2", "name": "Refused", "type": "groq-chat", "position": {"x": 0, "y": 100},
  11. "config": {
  12. "credentialId": "{{credential:fake}}",
  13. "baseUrl": "{{API}}/api/v1",
  14. "model": "llama-3.3-70b-versatile",
  15. "userPrompt": "hello",
  16. "retryCount": 2,
  17. "retryDelayMs": 100,
  18. "skipOnError": true,
  19. "timeoutMs": 15000
  20. }}
  21. ],
  22. "connections": [
  23. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"}
  24. ],
  25. "expect": {
  26. "n2": {"status": "completed", "output": {"success": false, "attempts": 1}}
  27. }
  28. }