askai questions on the command line
Project description
advanced-askai
This package allows you to have a chat conversation with AI right from your terminal.
Results are streamed to the console.
It has api bindings to allow programatic access and can be used for other tools.
The api key is stored using the secure keyring package. Right now we only support OpenAI's chatbot, but in the future I hope to include support for anthropics.
The only stable api in this package is located at advanced_askai.api
Binding to any other module in this library is subject to break.
Help
usage: Ask OpenAI for help with code
positional arguments:
prompt Prompt to ask OpenAI
options:
-h, --help show this help message and exit
--input-file INPUT_FILE
Input file containing prompts
--json Print response as json
--set-key SET_KEY Set OpenAI key
--output OUTPUT Output file
--advanced bleeding edge model: gpt-4o
--model MODEL
--verbose
--no-stream
--assistant-prompt ASSISTANT_PROMPT
--assistant-prompt-file ASSISTANT_PROMPT_FILE
File containing assistant prompt
--max-tokens MAX_TOKENS
Max tokens to return
--code Code mode: enables aider mode
--check Sends the response back to the chatbot for a second opinion
See advanced_askai.api.*
Develope
To develop software, run . ./activate.sh
Windows
This environment requires you to use git-bash
.
Linting
Run ./lint.sh
to find linting errors using pylint
, flake8
and mypy
.
Releases
1.0.1 - If the max tokens goes negative, just set it to 16000.
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
Built Distribution
File details
Details for the file advanced_askai-1.0.1.tar.gz
.
File metadata
- Download URL: advanced_askai-1.0.1.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 339341dbe8047f6b829f35b402e2203abdd4a50906033d7c0220d6df49fbf32c |
|
MD5 | 9b1876b961d696c4d341dadfb8b09272 |
|
BLAKE2b-256 | 662cafd6ca57506e4a7c8793b03b8666297beacefb727055934aba3693415f6c |
File details
Details for the file advanced_askai-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: advanced_askai-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0516aa231009115bcfda815170b7f4488fd4bc765d9f0c3a5b5f5afe2e0049a0 |
|
MD5 | d23ddabb366da300c06cacfe72dd3962 |
|
BLAKE2b-256 | 5d0e3f42c836bcaccffa864294d4e32105c979bcc3b136855c15f51f8bc50a24 |