Commit Graph

10 Commits

Author SHA1 Message Date
8a13f1a59c chore: replace placeholder branding with final logo and color scheme 2025-03-03 16:06:05 +00:00
e4f71ccea8 feat: add tool calling support with http_fetch function and message handling
Implement tool calling infrastructure including tools.h with http_fetch function description and execution, message_add_tool_call and message_add_tool_result helpers in messages.h, tool descriptions injection into user messages and chat_json, http header parsing utilities in http.h, curl_get function in http_curl.h, and tool call execution loop in openai_chat that recursively processes tool results.
2025-03-03 07:07:17 +00:00
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
ddc3cdcff6 feat: replace hardcoded api_key with resolve_api_key() and add .rcontext.txt loading 2025-01-04 15:54:48 +00:00
c797fe2be2 chore: add MIT license headers and fix formatting across all source files 2025-01-04 07:40:31 +00:00
6c9eb2e3e3 chore: remove commented debug prints and trailing whitespace across multiple source files 2025-01-04 07:35:39 +00:00
02ee32e718 chore: scaffold project with gitignore, makefile, cgi scripts, and core c headers
Add initial project structure including .gitignore for build artifacts,
Makefile with gcc build and run targets, README placeholder, cgi-bin
directory with gpt.py and gpt_template.html, and core C headers for
chat, http, line input, markdown rendering, and messages.
2025-01-04 05:00:03 +00:00