39 Commits

Author SHA1 Message Date
Copilot 9d6e75dfe8 Update default model to gpt-5.4-nano (#761) 2026-05-06 05:20:11 +02:00
Farkhod Sadykov a04167c723 Fix failing unit tests (#733) 2025-10-30 06:33:20 +03:00
Farkhod Sadykov 30f39782b0 Modify shell command minor test fixes 2025-07-17 04:10:23 +02:00
Florian G. Hechler 8fbd94f60b Fix --show-chat and --repl to respect --no-md (#513) 2025-02-17 01:17:31 +01:00
Carl Smedstad 9bd9420286 Replace removed unittest.mock assertion (Python 3.12) (#554) 2025-02-17 00:56:46 +01:00
Tijs Zwinkels bbd78d0190 Adopt new function calling that supports Groq and other models (#569)
Co-authored-by: Hejia Zhang <hejiazhang2023@outlook.com>
2024-08-10 19:19:57 +02:00
Alisson R. Perez 47d6faad2e Update default model to gpt-4o (#580) 2024-06-20 04:24:23 +02:00
Farkhod Sadykov 90f3f4c294 Use OpenAI by default make LiteLLM optional (#488) 2024-02-22 03:43:56 +01:00
Farkhod Sadykov 779749f304 Markdown option and config variable (#481) 2024-02-20 23:55:49 +01:00
Farkhod Sadykov ecb7b26e15 New config variable API_BASE_URL and minor bug fixes (#477) 2024-02-17 02:58:55 +01:00
Jean-Luc Thumm f4dc37f925 Markdown formatting for chat history (#444) 2024-02-11 20:03:50 +01:00
Farkhod Sadykov 1cb61dee0a Ollama integration 🦙 (#463) 2024-02-09 23:18:39 +01:00
Farkhod Sadykov c48926a4a4 Non-interactive mode for --shell and integration changes (#455)
* Added --interaction that works with --shell option.
* Changed shell integrations to use new --no-interaction option.
* Moved shell integrations into dedicated file integration.py.
* Changed --install-integration logic to install integrations without downloading sh scripts.
* Removed validation for PROMPT argument, empty string by default.
* Fixing an issue when sgpt is being called from non-interactive shell environments.
* Fixed and optimised Dockerfile.
* README.md improvements, and new feature examples.
* New funny demo video.
2024-01-28 05:03:44 +01:00
Farkhod Sadykov 361d1eabf8 Improved tests, REPL stdin, documentation (#452)
* Improved mocked response tests.
* REPL mode can accept stdin as initial prompt.
* Readme and Contributing documentation improvements.
2024-01-19 02:16:46 +01:00
Farkhod Sadykov b77b7d7c2f Improved tests with mocked API responses (#442)
* Changed name of --top-probability parameter to --top-p.
* Fixed bug in --repl --shell when describing shell command.
2024-01-15 05:24:31 +01:00
Farkhod Sadykov 20ff0f2eeb Added OpenAI function calls (#427) 2024-01-09 02:52:41 +01:00
Farkhod Sadykov 4b670cf8af Added OpenAI SDK dependency (#414) 2023-12-23 04:05:34 +01:00
Farkhod Sadykov 7ac1f98a8b New demo video and release ShellGPT v1.0.0 (#403) 2023-12-20 05:39:34 +01:00
Farkhod Sadykov 3eac96b5d7 Render markdown for default output (#400)
Co-authored-by: Jaycen Horton <jaycen@nori.com>
2023-12-19 21:29:21 +01:00
Farkhod Sadykov c0fc39dc4f System role optimisations for GPT4+ models (#398) 2023-12-19 16:53:15 +01:00
arafatsyed f50d544086 Multiline input in REPL (#393) 2023-12-12 23:14:14 +01:00
Navidur Rahman e61caf5c46 Show sgpt version command line option (#394) 2023-12-12 22:47:48 +01:00
Dan Arthur d2a43c6723 Add option to disable response streaming (#290) 2023-06-21 00:06:27 +02:00
Yaroslav Halchenko 3e493e80e2 Adding codespell checks and workflow (#287) 2023-06-18 04:39:12 +02:00
Farkhod Sadykov 0129e59db6 Option to describe --shell commands when executing (#249) 2023-05-21 19:45:51 +02:00
Chinar Joshi 39b5b18079 Describe shell command option (#195) 2023-05-16 18:19:14 +02:00
Farkhod Sadykov a054a90095 Custom roles (#183)
* Implementing custom roles.
* Implementing system role messages.
* Small stdin change with new lines at the end.
* Small option name fix --list-chats.
* Refactoring module imports.
* Adding tests for roles.
2023-04-16 18:27:49 +02:00
Farkhod Sadykov 12134c2c95 Migrating to TOML new linting and stricted typing (#165)
* pyproject.toml
* sdist and bdist specific files.
* CONTRIBUITNG.md.
* New linters and CI/CD.
* Mypy stricted types.
* Shell scripts to run linters and tests.
2023-04-15 01:22:23 +02:00
Farkhod Sadykov 3c5361b3c5 Accept prompt from stdin (#163) 2023-04-10 17:11:46 +02:00
Farkhod Sadykov 8fe43f562d Option to change completion color (#157)
* Optimized config module with Config class.
* Added config option to change OpenAI completion color in terminal.
2023-04-10 12:18:21 +02:00
Farkhod Sadykov 2b7067f7fa Model choice option to support GPT-4 (#151)
* Model choice option to support GPT-4
* Added default model to config file
---------
Co-authored-by: Levi Purdy <lpurdy01@gmail.com>
2023-04-09 19:16:19 +02:00
Farkhod Sadykov d12d72b20e Fixing shell command output stream (#150) 2023-04-08 00:01:20 +02:00
Farkhod Sadykov c8da76a2c4 Native $SHELL commands and better Windows support (#149)
* Native $SHELL command execution instead of default /bin/sh.
* Added dependency pyreadline3 for Windows systems.
* Fixed a bug when sgpt couldn't recognize powershell or cmd on Windows.
* Better integration with powershell and cmd on Windows.
2023-04-07 20:28:31 +02:00
Farkhod Sadykov 096b690e63 REPL mode for chat sessions (#94) 2023-04-03 02:28:34 +02:00
Farkhod Sadykov 763fef15d3 Refactoring, more tests, lint fixes, optimise
* Refactoring, more tests, lint fixes, optimise
* Lint CI fixes
* Changing version, readme help fixes
* Validation rule, validation tests, minor improvements
2023-04-02 02:52:55 +02:00
Parsa fc59c234ce Real time streaming and prompt engineering
* Better shell recognition for windows

* Added real time streaming and fix colors

* Prompt engineering, minor improvements and fixes

* Removed typerwrited function from utils

---------
Co-authored-by: Farkhod Sadykov <farkhod.sadykov@gmail.com>
2023-03-28 18:02:11 +02:00
Farkhod Sadykov 1465c4af12 Runtime config, code and file structure improvements, GitHub action fixes 2023-03-18 21:47:29 +01:00
Farkhod Sadykov 1312526af4 Prompt engineering, OS recognition, improvements 2023-03-15 20:28:46 +01:00
Farkhod Sadykov ed33f83eca Release 0.7.0 chat mode, caching, improvements 2023-03-05 16:00:47 +01:00