Skip to main content

askai questions on the command line

Project description

advanced-askai

Linting

MacOS_Tests Ubuntu_Tests Win_Tests

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.2 - Fixes openai dependency break: openai>=1.3.7,<=1.55.3
  • 1.0.1 - If the max tokens goes negative, just set it to 16000.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

advanced_askai-1.0.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

advanced_askai-1.0.2-py2.py3-none-any.whl (15.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file advanced_askai-1.0.2.tar.gz.

File metadata

  • Download URL: advanced_askai-1.0.2.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for advanced_askai-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d7bad46b978dc0fe85ec7e5fd9b5a9c8a12bca5a832b2d4caf5ff48c7c9baed1
MD5 23bdef190597cf63ff5c3528997d09d9
BLAKE2b-256 33a620995e581059e3a625e5862c89a6a3acb035b247d47061e59f966278dc41

See more details on using hashes here.

File details

Details for the file advanced_askai-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for advanced_askai-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4812c808a6ded9fed755a1eaf6ba78025551edeea5b69efc098495603323d706
MD5 65dc25f58533431db258222a6e549d2e
BLAKE2b-256 0db2683dde82ee3bcd4e7ac2d8a42407bea74ebe454edaad475e4dfe59b7fc26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page