test: cover llm workflow through api
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user