{"id":31640008,"url":"https://github.com/jonaylor89/gpt_oss_calc","last_synced_at":"2025-10-07T02:09:00.464Z","repository":{"id":308987193,"uuid":"1034485004","full_name":"jonaylor89/gpt_oss_calc","owner":"jonaylor89","description":"cli calculator using gpt-oss:20b","archived":false,"fork":false,"pushed_at":"2025-08-08T13:19:22.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T13:17:47.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonaylor89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-08T13:15:55.000Z","updated_at":"2025-08-08T13:19:25.000Z","dependencies_parsed_at":"2025-08-09T05:08:59.836Z","dependency_job_id":null,"html_url":"https://github.com/jonaylor89/gpt_oss_calc","commit_stats":null,"previous_names":["jonaylor89/gpt_oss_calc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonaylor89/gpt_oss_calc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Fgpt_oss_calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Fgpt_oss_calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Fgpt_oss_calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Fgpt_oss_calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaylor89","download_url":"https://codeload.github.com/jonaylor89/gpt_oss_calc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Fgpt_oss_calc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708004,"owners_count":26031932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-07T02:08:43.636Z","updated_at":"2025-10-07T02:09:00.454Z","avatar_url":"https://github.com/jonaylor89.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPT OSS Calculator\n\nCommand-line calculator using a local GPT model (Ollama) with function calling for math calculations.\n\n## Features\n\n- Uses GPT-OSS model via Ollama\n- Function calling for calculations\n- Streaming response support\n- Verbose mode shows thinking process\n- Math functions: sqrt, sin, cos, tan, ln, log, pi, e\n\n## Prerequisites\n\n- Rust (latest stable)\n- [Ollama](https://ollama.ai/) running locally with the `gpt-oss:20b` model\n\n## Installation\n\n```bash\ngit clone \u003crepository-url\u003e\ncd gpt_oss_calc\ncargo build --release\n```\n\n## Usage\n\n### Basic Usage\n```bash\ncargo run -q \"what's the square root of 69\"\ncargo run -q \"calculate 15 * 23 + 42\"\ncargo run -q \"what's sin(pi/2)\"\n```\n\n### Verbose Mode (shows AI thinking process)\n```bash\ncargo run -q -- --verbose \"what's sqrt(123456789)\"\ncargo run -q -- -v \"calculate 2^10\"\n```\n\n## Example Output\n\n**Normal mode:**\n```\n$ cargo run -q \"what's the square root of 69\"\nThe square root of 69 is about **8.30662**.\n```\n\n**Verbose mode:**\n```\n$ cargo run -q -- --verbose \"calculate 2^10\"\n  Thinking: The user asks to calculate 2^10. That's 1024. We can call the calculator.\n\nTool: calculator\n  Input: 2^10\n  Output: 1024\n\nThe result is: 1024\n```\n\n## How It Works\n\n1. Sends question to GPT-OSS model in Ollama\n2. Model calls calculator function for math expressions\n3. Evaluates expressions using `evalexpr`\n4. Returns response with results\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaylor89%2Fgpt_oss_calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaylor89%2Fgpt_oss_calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaylor89%2Fgpt_oss_calc/lists"}