Code Monkey home page Code Monkey logo

sengpt's People

Contributors

senzmaki 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

Watchers

 avatar  avatar  avatar

Forkers

mranv

sengpt's Issues

Stuck on thinking

I wrote a prompt to generate an autohotkey script, and it is stuck on Thinking.. for the last 10 minutes.

The prompt i wrote: sengpt give me a autohot key script using version2 which will run a command in terminal and then keep the terminal open, i want that script to run when i press alt+7 -i

Unusual activity detected

Unable to use sengpt after setting sengpt --session_token

 clichatgpt git:(main) โœ— sengpt hello

   You

  hello

   ChatGPT

Traceback (most recent call last):
  File "/Users/bread/opt/anaconda3/envs/311env/bin/sengpt", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/site-packages/sengpt/main.py", line 307, in main
    asyncio.run(async_main())
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/site-packages/sengpt/main.py", line 272, in async_main
    _, update_is_available = await asyncio.gather(
                             ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/site-packages/sengpt/main.py", line 243, in gpt_coroutine
    await interactive_mode(SYS_ARGS, conversation)
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/site-packages/sengpt/main.py", line 188, in interactive_mode
    prompt_response = await fetch_prompt_response(prompt, conversation)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/site-packages/sengpt/main.py", line 163, in fetch_prompt_response
    async for resp_json in conversation.chat(prompt):
  File "/Users/bread/opt/anaconda3/envs/311env/lib/python3.11/site-packages/sengpt/re_gpt/async_chatgpt.py", line 142, in chat
    raise UnexpectedResponseError(error, server_response)
sengpt.re_gpt.errors.UnexpectedResponseError: An unexpected error occurred. Error message: 'NoneType' object is not subscriptable.
This is what the server returned: data: {"message": {"id": "49915864-ae71-461b-9ea9-9f3bca0ef5f9", "author": {"role": "system", "name": null, "metadata": {}}, "create_time": null, "update_time": null, "content": {"content_type": "text", "parts": [""]}, "status": "finished_successfully", "end_turn": true, "weight": 0.0, "metadata": {"is_visually_hidden_from_conversation": true}, "recipient": "all"}, "conversation_id": "f597119e-fc22-4cda-9571-1d35b07b448b", "error": null}

data: {"message": {"id": "a72e835c-3bbf-41b1-9a59-12e8eada72c2", "author": {"role": "user", "name": null, "metadata": {}}, "create_time": 1711734339.75212, "update_time": null, "content": {"content_type": "text", "parts": ["hello"]}, "status": "finished_successfully", "end_turn": null, "weight": 1.0, "metadata": {"request_id": "86c1acc4bfcce853-DFW", "timestamp_": "absolute", "message_type": null}, "recipient": "all"}, "conversation_id": "f597119e-fc22-4cda-9571-1d35b07b448b", "error": null}

data: {"message": null, "conversation_id": "f597119e-fc22-4cda-9571-1d35b07b448b", "error": "Our systems have detected unusual activity from your system. Please try again later."}

.

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.