Git Product home page Git Product logo

gpt4shell's Introduction

Hi there, I'm Igor Souza

GitHub followers

I'm a data scientist and a Full Stack Developer. I love playing basketball and guitar. I've done many projects on machine learning and most recently on a solution for Operational Reaserch problems. My motivation is to improve the enterprise's processes which as they strive to diminish their spents and raise their gains.

  • šŸ”­ Iā€™m currently working at DataArt
  • šŸŒ± Iā€™m currently learning all about Data Science and Web Development
  • šŸ’¬ Ask me about anything on python I'll be glad to help
  • āš” Fun fact: I used to hate python! Now I love it!!

āš” Technologies

JavaScript Nodejs Python React Java C++ HTML5 CSS3 Bootstrap TypeScript MongoDB PostgreSQL MySQL Heroku Docker Amazon AWS Microsoft Azure Google Cloud Git GitHub BitBucket

GitHub Stats

GitHub Stats GitHub Stats

Contact Me

LinkedIn Twitter webmoney

gpt4shell's People

Contributors

igormcsouza avatar

Watchers

 avatar  avatar

gpt4shell's Issues

Create a flag to store the result

Today to store the result I need to pass as argument to a bash function like

gpt "Tell me a joke" >> file.txt

Which is fine, but the idea is to make a shurtcut for that and include diferent places to store, such as json, txt, clipboard... That can also later be used to populate a history, maybe can be added the following flags

  • --store="local" : to store the response into a txt, can be also clipboard value too
  • --history: This one will create a json file with the history and if it exists, will read the history and save together..

Use the history is not yet a feature, maybe later..

Remove Build file

gpt4shell/build

Lines 1 to 7 in 92a5c72

#!/bin/bash
# Get the version from pyproject.toml
VERSION=$(awk -F' = ' '/^version/ { gsub(/"/, "", $2); print $2 }' pyproject.toml)
# Build the Docker image
docker build -t igormcsouza/gptforshell:$VERSION .

This was good to build locally, but since this project auto publish on docker.io, there is no need to build locally, if for some reason that is needed, just build as development ...

Also, update documentation to fix the image name (gpt4shell) ->

docker run -e OPENAI_API_KEY -it igormcsouza/gptforshell:0.1.0 "<Your question here>"

Configure the context according to the needs

prompt = ChatPromptTemplate.from_template(
"Answer the question from the user in simple terms:\n{question}"
)

For now, there is no context to what the gpt will answer, create a way to add context for example, a parameter that reads from a file. So that the gpt can give answers according to the need og the user.

One of the best use cases for this, is instead of gpt answer a generic question, you can make it specialize in convert human readable text into terminal commands, givin' this context to the gpt!

Properly handle errors

If there is no internet connection or other unforeseen error happens it shoults a big message to the user that doesn't help! Just create a nice error message and if is an unknown error, point the user to leave a feedback at github!

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.