Improve tailoring and job fetch resilience

This commit is contained in:
2026-08-03 00:57:19 +03:30
parent 81d816ae54
commit 50cc879e1e
6 changed files with 311 additions and 19 deletions
+9
View File
@@ -59,6 +59,8 @@ RESUME_AGENT_API_KEY=your-rotated-token
RESUME_AGENT_BASE_URL=https://service.nokod.ir/v1
RESUME_AGENT_API_STYLE=chat
RESUME_AGENT_LLM_TIMEOUT_SECONDS=1800
RESUME_AGENT_JOB_FETCH_TIMEOUT_SECONDS=120
RESUME_AGENT_JOB_FETCH_RETRIES=2
```
Discover the provider's exact model IDs, then add your choice to `.env`:
@@ -87,6 +89,13 @@ RESUME_AGENT_LOG_MODEL_PAYLOADS=false
to 1800 seconds (30 minutes), while connection establishment is capped at 30 seconds.
An upstream gateway may still enforce its own shorter timeout.
Fetching a job URL is a separate network request made before the model runs. It defaults
to a 120-second timeout with two retries and exponential backoff. Configure it with
`RESUME_AGENT_JOB_FETCH_TIMEOUT_SECONDS`, `RESUME_AGENT_JOB_FETCH_RETRIES`, and
`RESUME_AGENT_JOB_FETCH_RETRY_BACKOFF_SECONDS`. If a careers site blocks server-side
requests, paste the job description into the app instead; increasing the model timeout
will not affect that connection.
## Usage
### Web interface