Commit Graph

6 Commits

Author SHA1 Message Date
5b660fe905 refactor: extract user authentication logic into dedicated service class with dependency injection 2025-01-27 18:06:59 +00:00
7a8f949646 feat: replace custom SSL HTTP implementation with libcurl and add include guards
Add `http_curl.h` providing `curl_post` function using libcurl, update `openai.h` to call `curl_post` instead of `https_post` in both `openai_system` and `openai_chat`, add missing `#ifndef`/`#endif` include guard to `auth.h`, increase HTTP buffer size from 4096 to 1MB, add explicit `(char *)` casts to `malloc`/`realloc` calls in `http.h`, and link `-lcurl` in both `build` and `build_free` Makefile targets.
2025-01-27 17:57:21 +00:00
b95d7d8e56 fix: add missing newlines at EOF, fix memory leaks, increase buffer sizes, and improve plugin imports 2025-01-26 01:54:45 +00:00
7160567726 feat: add free version build target with hardcoded api key and gpt-3.5-turbo model 2025-01-05 21:59:51 +00:00
af26cb29b3 fix: add newline padding to missing API key error message in auth.h 2025-01-04 16:04:14 +00:00
ddc3cdcff6 feat: replace hardcoded api_key with resolve_api_key() and add .rcontext.txt loading 2025-01-04 15:54:48 +00:00