Commit Graph

26 Commits

Author SHA1 Message Date
00c45e0978 fix: return error strings instead of NULL on popen and realloc failures in tool_function_bash 2025-03-03 08:48:50 +00:00
f8667d1a4b feat: add bash command execution tool with popen-based output capture
Implement a new `tool_function_bash` that executes shell commands via `popen` and captures their output into a dynamically allocated buffer. Register the corresponding `tool_description_bash` JSON schema and include it in the `tools_descriptions` array alongside the existing HTTP GET tool. Also change the history file path from `~/.calpaca_history` to `.r_history` and remove the redundant `read_history` call before adding new history entries.
2025-03-03 08:39:19 +00:00
38b233bfcf chore: remove trailing blank lines and debug printfs from openai.h and tools.h 2025-03-03 07:32:41 +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
c054c5a019 chore: remove python3.14 linking and plugin include from build and main 2025-02-13 18:09:29 +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
45246a1bd0 feat: add --stdin flag to read prompt from piped input and increase code highlight buffer to 4096 2025-01-25 13:19:01 +00:00
484b7c5c5b feat: add inplace_url.h and url.h for URL extraction and markdown-style inline replacement 2025-01-05 23:26:34 +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
3892e7ec87 docs: swap free and commercial download sections and add python3.14-dev note to README 2025-01-05 22:11:19 +00:00
a5ae0ebe7d docs: add download links and usage examples for commercial and free versions to README 2025-01-05 22:08:20 +00:00
af26cb29b3 fix: add newline padding to missing API key error message in auth.h 2025-01-04 16:04:14 +00:00
0d8082531e chore: remove stale context file reference and add chatbot customization note to README 2025-01-04 16:01:08 +00:00
46825f0a2c chore: remove stale context placeholder and add rcontext file documentation to README 2025-01-04 16:00:11 +00:00
d7977c1e1c chore: remove outdated context references from project documentation
- Stripped stale references to C/Python-only context rules from .rcontext.txt
- Added new instruction for emoticon usage and markdown formatting in responses
- Retained core review and alternative language guidance sections
2025-01-04 15:55:44 +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
04e23943ef docs: add security note about revoked api key and community tone to readme 2025-01-04 15:21:07 +00:00
3b50fb7b00 chore: delete entire repository content including reviews directory and all files 2025-01-04 07:46:15 +00:00
b603316c5f feat: add detailed review content with user feedback and rating
The review now includes a full text body, a numeric rating field, and a timestamp for when the review was submitted. This enables richer display and sorting by date on the product page.
2025-01-04 07:44:34 +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
b1cf4a55eb feat: add automated code review system generating JSON and markdown reports for C and Python source files 2025-01-04 07:20:50 +00:00
cbe7f1f6e5 docs: add project overview, feature list, configuration details, and screenshot to README 2025-01-04 07:13:54 +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