Search answers

This commit is contained in:
2026-02-14 00:14:10 -08:00
parent 9a8e127ccc
commit 6f5787f923
8 changed files with 115 additions and 27 deletions

View File

@@ -55,6 +55,10 @@ If `ADMIN_TOKEN` is not set, the server runs in open mode (dev).
- `GET /v1/searches/:searchId`
- `POST /v1/searches/:searchId/run`
Search runs now execute both Exa `searchAndContents` and Exa `answer`, storing:
- ranked search results (for result cards), and
- a top-level answer block + citations.
When `chatId` is provided to completion endpoints, you can send full conversation context. The server now stores only new non-assistant messages to avoid duplicate history rows.
`POST /v1/chat-completions` body example: