Commit Graph
9 Commits
Author SHA1 Message Date
Gerald LonlasandClaude Opus 4.7 2301e15111 fix: include both endpoint errors when chat.completions fallback also fails
When the responses endpoint fails and the chat.completions fallback also
fails (raises or returns empty), the original responses error was captured
in fallback_reason but never surfaced. Wrap the fallback call in its own
try/except and re-raise a RuntimeError that chains both errors with
context, so users see why both endpoints failed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 00:46:20 +08:00
Gerald Lonlas 93a0268b52 test: cover image node, routes, entrypoint, and data types 2026-03-05 01:28:29 +08:00
Gerald Lonlas cbace183ca test(nodes): add connect and text-gen unit coverage 2026-03-05 01:26:53 +08:00
Gerald Lonlas 8c10bf002e test(client): cover parsing, seed, and image helper branches 2026-03-05 01:25:03 +08:00
Gerald Lonlas 99a2477a5a test: add pytest harness and coverage configuration 2026-03-05 01:23:15 +08:00
Gerald LonlasandClaude Sonnet 4.6 617100dbe6 fix(tests): correct broken seed and think-content test assertions
- coerce_seed("") returns None, not ValueError; move "" out of the
  invalid-values parametrize and give it its own explicit assertion
- strip_think_content tests used \\n (literal backslash-n) instead of
  real newlines; .strip() cannot remove backslash or 'n' so the dangling-
  tag test always failed. Replace with actual \n to match real LLM output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 21:11:19 +08:00
Gerald Lonlas 466ec9d001 feat: strip <think> reasoning blocks from text output when reasoning is enabled 2026-03-04 14:52:18 +08:00
Gerald Lonlas a78b9b0e8d fix: handle None prompt values during node validation and message build 2026-03-04 14:21:38 +08:00
Gerald Lonlas 5624847c18 feat: add connect-node web controls, docs, and client tests 2026-03-04 14:04:45 +08:00