test: cover llm workflow through api

This commit is contained in:
Codex
2026-06-21 23:43:02 +08:00
parent 4db9980e81
commit f90ddab454
2 changed files with 54 additions and 3 deletions
+5 -2
View File
@@ -36,8 +36,11 @@ OPENAI_API_KEY=
OPENAI_MODEL=gpt-4.1-mini
```
When no API key is configured, deterministic local fallbacks keep the workflow
usable for tests and local review.
When a DeepSeek or OpenAI-compatible key is configured, the workflow uses the
provider for fact extraction, article optimization, QA enrichment, and targeted
rewrite. Every LLM response is validated with Zod before use. When no API key is
configured, or when the provider response is invalid, deterministic local
fallbacks keep the workflow usable for tests and local review.
All API requests require the configured access key: