You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add article summary feature with OpenAI integration
Implement MongoDB cache for summaries to reduce API costs and improve performance.
Rename parameters from OpenAI-specific to more generic API names.
Support configurable model selection through ModelType enum or direct model names.
Add comprehensive tests with mocks for summary generation and caching.
Update documentation in README with summary feature details.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
| mongo-db | MONGO_DB |`ureadability`| mongo database name |
@@ -24,6 +25,30 @@
24
25
GET /api/content/v1/parser?token=secret&summary=true&url=http://aa.com/blah - extract content (emulate Readability API parse call), summary is optional and requires OpenAI key and token to be enabled
25
26
POST /api/v1/extract {url: http://aa.com/blah} - extract content
26
27
28
+
### Article Summary Feature
29
+
30
+
The application can generate concise summaries of article content using OpenAI's GPT models:
31
+
32
+
1.**Configuration**:
33
+
- Set `api-key` to your OpenAI API key
34
+
- Optionally set `model-type` to specify which model to use (e.g., `gpt-4o`, `gpt-4o-mini`)
35
+
- Default is `gpt-4o-mini` if not specified
36
+
- A server token must be configured for security reasons
37
+
38
+
2.**Usage**:
39
+
- Add `summary=true` parameter to the `/api/content/v1/parser` endpoint
0 commit comments