fixed a bug

This commit is contained in:
2026-09-06 08:32:04 +08:00
parent 0baff0b447
commit aca36c78c1
8 changed files with 46 additions and 14 deletions

View File

@@ -68,7 +68,9 @@ requests use `X-Client-Key` when `CLIENT_API_KEY` is configured.
## AI Sentence Explanation
Configure an OpenAI-compatible chat-completions endpoint in `sentence_api/.env`:
Configure an OpenAI-compatible chat-completions endpoint in `sentence_api/.env`.
A base URL ending in `/v1` is also accepted and is resolved to
`/v1/chat/completions`:
```dotenv
AI_API_URL=https://api.example.com/v1/chat/completions