Skip to content

MLeidel/DescAI

Repository files navigation

DescAI

a GUI desktop AI client

Converse with OpenAI, Claude and Gemini Large Language Models

  • Temporary local Chat Mode
  • Supports a variety of OpenAI models and web-search
  • Supports Claude Haiku, Sonnet, and Opus
  • Convert responses to HTML or VOICE
  • Maintains a log of reponses
  • Simple GUI
  • Choose from many themes and colors
  • Pop-up Prompt Manager

see https://platform.openai.com for OpenAI model information
see https://www.anthropic.com for information on Claude models

requires several modules

    anthropic==0.84.0
    Markdown==3.10.2
    openai==2.28.0
    ttkbootstrap==1.14.2
    google-genai==1.68.0

Uses python3 and tkinter

and:

    text editor
    
    VNC media player
    
    Internet and Internet browser

Tested on Windows and Linux


Instalation

Use pip to install any missing python modules

Need access keys from both OpenAI and Anthropic

Keys need to be set in respective environments as
GPTKEY for OpenAI
CLDKEY for Claude
api_key for Google Gemini


Voice

If you plan to use Voice reading of responses, you will need to install VLC media player.

Use Ctrl-Shift-S to play back the reponses.

Each play-back is saved in a separate file in the application directory.


Options

The options.ini file contains all of the options settings.

There is a GUI that handles options but can use a text editor also.


DescAI

Buttons

  • New

Begins a new conversation

To change the system role message for the current session,
type prompt You are a .......... assistant
into the Prompt Area first, and then click "New".

  • View

Displays the log file you named in Options.

  • Text

Opens the current response or selection in your text editor
Set up the name of your text editor in options.

  • Html

Converts the current response or selection to HTML and opens it in your default browser.

  • Options

launches the Options editing program

  • Submit Query

Submits prompt to the current AI Model

Ctrl-G and Ctrl-Enter do that too.

  • Web

Toggle the Gpt "web-search" tool

NOTE: works with most OpenAI models Claude Sonnet and Claude Opus

  • Select temporary Model

Select from models listed in options.ini file
Selecting a different model forces a new conversation

On startup the "default" model is always selected
The default model is set in options

  • Close

Exit the program. Ctrl-q exits the program without confirmation.


Context menu

Right-Click in the prompt or response area to get a bunch of useful choices.


Setting options from the app

alttext

Operation

At startup, if a previous conversation is detected the user is prompted to either continue or start a new conversation. So closing the app does not terminate a conversation. To start a new conversatioin while the app is running use the 'New' button. Multiple conversations are not preserved anywhere, but will remain in the log until it is purged.

Hot Keys

key action
Ctrl-H This HotKey help
Ctrl-Q Close Program No Prompt
Ctrl-Shift-D Delete Log File
Ctrl-Shift-S Speak the Currrent Text
Ctrl-G Submit Query (Button)
Ctrl-Enter Submit Query (Button)
Ctrl-F Find text
Ctrl-N Find next text
Ctrl-J Open Selected URL
Ctrl-R Clear Prompt Area
Alt-P Open Prompt Manager

The prompts directory is for storing custom prompt text. Prompt files must begin with "prompt" and be followed by non-space characters, like prompt1 or promptX. You can easily edit your prompt?.md files with a text editor.

In addition, a Prompts Manager presents named prompts that are created and modified in a file called prompts.txt.

alttext


END

About

GUI desktop client for conversing with OpenAI and Claude LLM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages