Commit Graph

18 Commits

Author SHA1 Message Date
Claudio Ortolina d6e154b7b3 Remove redundant case 2026-04-26 19:01:44 +01:00
Claudio Ortolina 5b94d6bdcf Avoid intermediate variables, and use consistent names 2026-04-26 07:57:40 +01:00
Claudio Ortolina a1c665b490 ML-21: Classify API errors as transient vs permanent 2026-04-24 14:02:15 +01:00
Claudio Ortolina 9e1dbfd530 Re-enable Credo ModuleDoc check
Closes #108
2026-03-13 10:52:01 +00:00
Claudio Ortolina 7cf9b4e7f8 First pass at uniformed types, specs and docs
- spec public functions (skipping controllers, views, live views and
components)
- use types instead of explanations in docs
- remove redundant docs
- fix typos
2026-03-06 08:33:11 +00:00
Claudio Ortolina 99674eb8bc Refactor and add tests for OpenAI namespace 2026-03-02 14:11:51 +00:00
Claudio Ortolina 5bd85013c6 Simplify OpenAI api implementation 2026-03-02 13:56:46 +00:00
Claudio Ortolina 78025eba69 Use gpt 4.1 with search 2026-02-22 10:27:44 +00:00
Claudio Ortolina 8d38512712 Fix review blockers in record chat
- Add Task.Supervisor to app supervision tree
- Use tagged tuples instead of rescue for error handling
- Pass embedding_text from parent LiveView as prop
- Remove dead Completion struct fields
- Extract socket assigns before Task closure
- Log errors server-side, show generic user message
- Make build_system_prompt private, remove thin wrapper
- Extract do_send_message for retry reuse

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 10:20:58 +00:00
Claudio Ortolina 6e6e419801 Add record chat sheet with OpenAI streaming
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 10:13:05 +00:00
Claudio Ortolina 9cae972bc5 Add similar records
Initial stab by Claude
2025-10-11 21:39:59 +02:00
Claudio Ortolina 502436c987 Move api_key resolution to OpenAI module 2025-02-20 09:17:28 +00:00
Claudio Ortolina 9dce1cacb9 Where possible, use built-in JSON instead of Jason
Note that it's not possible to replace any call where we encode and
pretty print, as JSON doesn't have such functionality.
2024-12-19 20:18:09 +00:00
Claudio Ortolina 832e835252 Add function to get embeddings for arbitrary string 2024-12-18 22:20:41 +00:00
Claudio Ortolina 3c85f9e974 Extract OpenAI.Completion struct 2024-12-11 23:24:16 +03:00
Claudio Ortolina 693b350db2 Add papertrail for copied code 2024-12-10 19:24:48 +03:00
Claudio Ortolina 44a8650c6c Move API Key to configuration 2024-12-10 16:50:37 +03:00
Claudio Ortolina b68a7ac734 Can fetch genres from OpenAI 2024-12-10 16:45:29 +03:00