Git Product home page Git Product logo

hey's Introduction

๐Ÿ‘‹ Hi there, I'm Sadra!

Python backend developer and Machine Learning enthusiast. Innovation seeker. Technical writer. Leading @collove community.

๐Ÿ“š Recent Blog Posts

Check out blog.imsadra.me for more interesting blog posts!

๐Ÿค™ Contact Me

X | Email | Weblog | LinkedIn

hey's People

Contributors

github-actions[bot] avatar iam-benyamin avatar lnxpy avatar smoeinbbp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hey's Issues

Fix the password vulnerability

Remove --set-passord and replace it with auth and receive the password via getpass for the sake of more reliability and safety. This way, the user's password won't be shown in hostory or other places.

Improve error message

After I installed Hey, I forgot to do authentication, and the error Hey gave me was not attractive.

Traceback (most recent call last):
   File "/home/benyamin/.local/bin/hey", line 8, in <module>
     sys.exit(main())
   File "/home/benyamin/.local/lib/python3.10/site-packages/hey/cli.py", line 70, in main
     raise BrokenCredentials(
hey.exceptions.system.BrokenCredentials: Make sure you have set your MINDSDB_EMAIL_ADDRESS and password via --set-password.

I suggest that the error text be something like this

To use hey, you need to do the necessary work

  1. Register at mindsdb.com
  2. Set your email in .bashrc
  3. Setting the login password with the corresponding command

not full answer even in gpt-3.5-turbo

  • Hey version: v0.1.0
  • Python version: 3.11
  • Operating System: Ubuntu

Description

I tried several commands and tasks, but "hey" did not produce a complete response, even when I used the GP-3.5-turbo model rather than the GP-4 model.

image

Is there a problem with Mindb, or should we just ask hey for tasks that don't require additional description?

What I Did

hey i have a project that it is create with golang i use pg as my database and use entgo for orm. any way .  in user_username table i store this feilds: id - user_name - user_id . now i want create change username mechanism in my project .i also use gofiber framework. my question is how can i implement this mechanism . should i search in db if is there any same username existed then change user username or something else

MindsDB asks for re-training the GPT model

  • Hey version: 0.1.0
  • Python version: 3.11.2
  • Operating System: MacOS

Description

mindsdb_sdk asks for a retrain on the GPT model on the dashboard. Its exception only needs to be handled in a better more-detailed way.

What I Did

$ hey something..
Traceback (most recent call last):
  File "/opt/homebrew/bin/hey", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/hey/cli.py", line 85, in main
    console.print(instance.answer(
                  ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/hey/middlewares/mindsdb.py", line 86, in answer
    ).fetch()
      ^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mindsdb_sdk/query.py", line 29, in fetch
    return self.api.sql_query(self.sql, self.database)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mindsdb_sdk/connectors/rest_api.py", line 11, in wrapper
    return fnc(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mindsdb_sdk/connectors/rest_api.py", line 78, in sql_query
    raise RuntimeError(data['error_message'])
RuntimeError: model 'gpt_model' is obsolete and needs to be updated. Run 'RETRAIN gpt_model;'

hey answer incomplete

  • Hey version: v0.1.2
  • Python version:
  • Operating System: Fedora

Description

hey answers incomplete when the answer is long

What I Did

โ•ญโ”€[fedora] as ghost in ~                                                                                                                                        17:24:13
โ•ฐโ”€โ”€โžค hey write a python program that prints a circle and then explain that
Sure, let's write a Python program to draw a circle using the Turtle graphics library. Here's the code:                                                                  

                                                                                                                                                                         
 import turtle                                                                                                                                                           
                                                                                                                                                                         
 # Set up the turtle                                                                                                                                                     
 t = turtle.Turtle()                                                                                                                                                     
 t.speed(0)                                                                                                                                                              
                                                                                                                                                                         
 # Function to draw a circle                                                                                                                                             
 def draw_circle(radius):                                                                                                                                                
     t.penup()                                                                                                                                                           
     t.goto(0, -radius)                                                                                                                                                  
     t.pendown()                                                                                                                                                         
     t.circle(radius)                                                                                                                                                    
                                                                                                                                                                         
 # Draw a circle with a given radius                                                                                                                                     
 draw_circle(100)                                                                                                                                                        
                                                                                                                                                                         
 # Close the                                                                                                                                                             
                           

I got error on asking first question.

  • Hey version: v0.1.0
  • Python version: 3.10.6
  • Operating System: ubuntu 22.04

Description

Hey, I got this error when I asked the first question after I added my authentication:

Traceback (most recent call last):
  File "/home/masood/.local/bin/hey", line 8, in <module>
    sys.exit(main())
  File "/home/masood/.local/lib/python3.10/site-packages/hey/cli.py", line 85, in main
    console.print(instance.answer(
  File "/home/masood/.local/lib/python3.10/site-packages/hey/middlewares/mindsdb.py", line 86, in answer
    ).fetch()
  File "/home/masood/.local/lib/python3.10/site-packages/mindsdb_sdk/query.py", line 29, in fetch
    return self.api.sql_query(self.sql, self.database)
  File "/home/masood/.local/lib/python3.10/site-packages/mindsdb_sdk/connectors/rest_api.py", line 11, in wrapper
    return fnc(self, *args, **kwargs)
  File "/home/masood/.local/lib/python3.10/site-packages/mindsdb_sdk/connectors/rest_api.py", line 78, in sql_query
    raise RuntimeError(data['error_message'])
RuntimeError: Can't find view with name/id: gpt_model/None

Fix linting

Description

There are some places in code that we can improve based on flake8 reports.

What I Did

if you run command flake8 . in the root directory of the project, it will generate this output.

./hey/cli.py:54:13: F841 local variable '_' is assigned to but never used
./hey/constants/informations.py:16:7: W605 invalid escape sequence '\_'
./hey/constants/informations.py:16:12: W605 invalid escape sequence '\_'
./hey/exceptions/auth.py:6:34: E701 multiple statements on one line (colon)
./hey/exceptions/connection.py:6:30: E701 multiple statements on one line (colon)
./tests/exceptions/test_auth.py:1:14: W291 trailing whitespace
./tests/exceptions/test_system.py:4:23: W291 trailing whitespace
./tests/exceptions/test_system.py:13:1: E302 expected 2 blank lines, found 1
./tests/exceptions/test_system.py:17:1: E302 expected 2 blank lines, found 1
./tests/test_cli.py:1:1: F401 'pytest' imported but unused
./tests/test_cli.py:1:1: F401 'argparse' imported but unused
./tests/test_cli.py:1:14: E401 multiple imports on one line

OR maybe you have defined the other configuration for this.

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.