Metadata-Version: 2.1
Name: cmd_ai
Version: 0.1.1
Summary: Another ChatGTP project in commandline of linux
Home-page: http://gitlab.com/me/cmd_ai
Author: jaromrax
Author-email: jaromrax@gmail.com
License: GPL2
Platform: UNKNOWN
Description-Content-Type: text/markdown

Project cmd~ai~
===============

*Another ChatGPT project that implements as a shell interface*

README for version `0.0.8`

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
----

``` {.example}
.h      help
.q      quit
.e      execute code
.r      reset messages, scripts
.l      show tokens
.m      show models
.l number ... change limit tokens
________________ ROLES _____________
.a   assistent
.t   NO 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

1.  [DONE]{.done .DONE} Commit message example

    ``` {.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
------

### POSTPONED Dalle3

I need to test if this works or what

### [TODO]{.todo .TODO} Upload for analysis to GPT-v {#upload-for-analysis-to-gpt-v}

That would be interesting from commandline

Dependencies
============

-   googlesearch-python


