Another ChatGTP project in commandline of linux
Project description
Project cmdai
/Another ChatGPT project. CLI one /
New:
v. 0.3.0 - names are separate, history is always! loaded.
TODO : documentation now
README for version 0.0.8
EXAMPLE
cmd_ai "Jak bude zitra (pouze) ve Stredoceskem kraji?" -u -vcs
cmd_ai -a dalle "Landscape with hills and lakes, photographic quality"
Installation
It should work with pip3 install
, not tested yet.
Needs API_KEY
for OpenAI in ~/.openai.token
, than it creates own
copy at ~/.config/cmd_ai/cfg.json
Main Features
- terminal with gpt4
- incremental saving conversation to
conversations.org
- pythonista and sheller mode (jsut a system prompt)
- shows (keepsrecords) the spent money
- saves PY/SH code to
/tmp
and lets it execute with.e
- PIPE mode
Help
.h help
.q quit
.e execute code
.r reset messages, scripts
.l show tokens
.m show models
.l number ... change limit tokens
________________ ROLES _____________
.a assistant
.t translator
.p python coder
.s shell expert
.d NO dalle
________________ MODEL
.i NO use dalle
.v NO use vision
Assistent
Instructed to be brief and clear, non-repetitive
Pythonista
Be brief, one code block per answer max. Creates a file in /tmp and lets
it run with .e
Sheller
Similar but for bash
Piper
Works only from commandline, when pipe (stdin) is detected. No memory, on task/question, asks before runs the code
Dalle
Gets one image, 1024x1024, restricted prompt rewrite
-
[DONE]{.done .DONE} Commit message example
git diff | ai 'write a commit message, show it as git commit -a -m "message" command'
DOING Function calls / tools
-
function_*.py
files -
This is in an experimental phase
-
the best guide is at https://platform.openai.com/docs/guides/function-calling
[DONE]{.done .DONE} Weather grab test (needs some tweak to prompt to focus on SCK) {#weather-grab-test-needs-some-tweak-to-prompt-to-focus-on-sck}
- today or tommorow is understood
WAITING Document upload
- it costs 0.20$ per 1GB per day....
Images
[DONE]{.done .DONE} Dalle3 {#dalle3}
First attmpt works also in cmdline (-a dalle)
[TODO]{.todo .TODO} Upload for analysis to GPT-v {#upload-for-analysis-to-gpt-v}
That would be interesting from commandline
Dependencies
- googlesearch-python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cmd_ai-0.3.10.tar.gz
.
File metadata
- Download URL: cmd_ai-0.3.10.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 392aba38f1314428d78ff4d5c0b1b7202e4f8b92aa06885065bac8f8567fac22 |
|
MD5 | dd25cb60390a0ef2844088f390c2c2d6 |
|
BLAKE2b-256 | 075c3b0bb7b206d6890cdc77583b00fdad3a57603d024942e34f8e6812fd9d25 |