Giter Site home page Giter Site logo

unixgpt's People

Contributors

jamino30 avatar

Stargazers

 avatar

Watchers

 avatar

unixgpt's Issues

provide model with current datetime for better datetime responses

unixgpt -i "show me any files that have been created after january 10. make sure these files are only any python files.""
dquote> "
=> Searching... ๐Ÿ‘จโ€๐Ÿ’ป
=> Command found! ๐Ÿ™†โ€โ™‚๏ธ  find . -type f -name "*.py" -newermt 2023-01-10 !
-newermt 2023-01-11

TypeError encountered when copying a produced UNIX command

Traceback (most recent call last):
  File "/opt/homebrew/bin/unixgpt", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/unixgpt/__main__.py", line 14, in main
    cli(OPENAI_API_KEY)
  File "/opt/homebrew/lib/python3.11/site-packages/unixgpt/cli.py", line 75, in cli
    handle_input(nl_input=user_input, prompt=OPENAI_UNIX_COMMAND_PROMPT)
  File "/opt/homebrew/lib/python3.11/site-packages/unixgpt/cli.py", line 105, in handle_input
    handle_known_actions(unix_command=unix_command, nl_input=nl_input)
  File "/opt/homebrew/lib/python3.11/site-packages/unixgpt/cli.py", line 150, in handle_known_actions
    handle_copy_action(unix_command=unix_command)
TypeError: handle_copy_action() got an unexpected keyword argument 'unix_command'

implement revise for input feature

input: show me all my files

output: ls

revised input: show me all my files + and enter Downloads directory

output: ls && cd Downloads 

args.input error when -i/--input is not passed with unixgpt

Traceback (most recent call last):
  File "/opt/homebrew/bin/unixgpt", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/unixgpt/__main__.py", line 5, in main
    cli()
  File "/opt/homebrew/lib/python3.11/site-packages/unixgpt/cli.py", line 31, in cli
    input: str = args.input.strip()
                 ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.