GithubHelp home page GithubHelp logo

gpt4free-discord's Introduction

About Me

from typing import Tuple, List, Dict

class Tekky:
    pass

class Attributes(Tekky):
    @property
    def contact(self) -> Tuple[str, str, str]:
        telegram = "t.me/xtekky"
        channel  = "t.me/onlpx"
        email    = "[email protected]"
	    
        return telegram, channel, email

    @property
    def life(self) -> Tuple[List[str], int]:
        langs = ['French', 'German', 'Spanish', 'English']
        age   = 17
		
        return langs, age
	
    @property
    def coding(self) -> Tuple[Dict[str, List[str]], List[str], List[str], Dict[str]]:
        langs = {
            'expert'      : ['python'],
            'intermediate': ['go', 'js'],
            'learning'    : ['c', 'c++', 'c#', 'asm', 'java']
        }
        specialities  = ['web/app reverse engineering', 'fullstack', 'ai']
        ide           = ['vscode']
        pc            = {
            'MacOS': {
                'macbook air m2': {
                    'processor': 'm2 | 8 cores',
                    'ram'      : '8gb',
                    'gpu'      : 'm2 | 8 cores'
                }
            },
            'Windows': {
                'custom': {
                    'processor': 'AMD ryzen 7 5800X | 8 cores',
                    'ram'      : '16gb',
                    'gpu'      : 'nvidia 3070 | 5888 CUDA cores'
                }
            }
        }

	return langs, specialities, ide, pc

ranked 4th for most contributions made by independent developers to AI open source & decentralisation (source)
gpt4free is a top #200 repository on github ~ (source)

Skills

gpt4free-discord's People

Contributors

mishalhossin avatar sui-xing avatar xtekky 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpt4free-discord's Issues

discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

I have an problem when input "/create" command in discord channel

[2023-06-14 04:22:15] [ERROR   ] discord.app_commands.tree: Ignoring exception in command 'create'
Traceback (most recent call last):
  File "C:\Users\Jupiter\Downloads\gpt4free-discord-main\main.py", line 67, in say
    Interaction.response.defer()
    ^^^^^^^^^^^
NameError: name 'Interaction' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\commands.py", line 828, in _do_call
    return await self._callback(interaction, **params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jupiter\Downloads\gpt4free-discord-main\main.py", line 86, in say
    await interaction.response.send_message(f'an error occured: {e}')
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\interactions.py", line 799, in send_message
    await adapter.create_interaction_response(
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\webhook\async_.py", line 219, in request
    raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\tree.py", line 1248, in _call
    await command._invoke_with_namespace(interaction, namespace)
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\commands.py", line 853, in _invoke_with_namespace
    return await self._do_call(interaction, transformed_values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\commands.py", line 846, in _do_call
    raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'create' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction
ERROR:discord.app_commands.tree:Ignoring exception in command 'create'
Traceback (most recent call last):
  File "C:\Users\Jupiter\Downloads\gpt4free-discord-main\main.py", line 67, in say
    Interaction.response.defer()
    ^^^^^^^^^^^
NameError: name 'Interaction' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\commands.py", line 828, in _do_call
    return await self._callback(interaction, **params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jupiter\Downloads\gpt4free-discord-main\main.py", line 86, in say
    await interaction.response.send_message(f'an error occured: {e}')
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\interactions.py", line 799, in send_message
    await adapter.create_interaction_response(
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\webhook\async_.py", line 219, in request
    raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\tree.py", line 1248, in _call
    await command._invoke_with_namespace(interaction, namespace)
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\commands.py", line 853, in _invoke_with_namespace
    return await self._do_call(interaction, transformed_values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jupiter\tools\miniconda\envs\gpt4free_env\Lib\site-packages\discord\app_commands\commands.py", line 846, in _do_call
    raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'create' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction

The script does not remember the context of the conversation

Is there some way to save the conversation so that GPT understands the context of the conversation?

The script does not allow for retaining conversation context. Each prompt/result pair is independent of each other. As a result, GPT cannot continue its response if it was not fully generated, and it will not understand what was asked in the prompt in previous interactions. For example, I ask gpt to remember my name, and in the next message I ask him to say my name. As a result, he doesn't know.
image

指定的网络名不再可用

line 988, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443 ssl:default [指定的网络名不再可用。]

Error

I get this error at every Model

[2023-06-16 13:41:17] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'create'
Traceback (most recent call last):
File "C:\Users\Desktop\gpt4free-discord-main\main.py", line 66, in say
completion = client.send_message(models[model],
KeyError: 'claude'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\commands.py", line 842, in _do_call
return await self._callback(interaction, **params) # type: ignore
File "C:\Users\Desktop\gpt4free-discord-main\main.py", line 76, in say
await interaction.response.send_message(f'an error occured: {e}')
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\interactions.py", line 751, in send_message
raise InteractionResponded(self._parent)
discord.errors.InteractionResponded: This interaction has already been responded to before

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\commands.py", line 867, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\commands.py", line 860, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'create' raised an exception: InteractionResponded: This interaction has already been responded to before
ERROR:discord.app_commands.tree:Ignoring exception in command 'create'
Traceback (most recent call last):
File "C:\Users\Desktop\gpt4free-discord-main\main.py", line 66, in say
completion = client.send_message(models[model],
KeyError: 'claude'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\commands.py", line 842, in _do_call
return await self._callback(interaction, **params) # type: ignore
File "C:\Users\Desktop\gpt4free-discord-main\main.py", line 76, in say
await interaction.response.send_message(f'an error occured: {e}')
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\interactions.py", line 751, in send_message
raise InteractionResponded(self._parent)
discord.errors.InteractionResponded: This interaction has already been responded to before

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\commands.py", line 867, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\app_commands\commands.py", line 860, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'create' raised an exception: InteractionResponded: This interaction has already been responded to before

run main.py error

WARNING:discord.client:PyNaCl is not installed, voice will NOT be supported
[2023-06-15 13:08:34] [INFO ] discord.client: logging in using static token
INFO:discord.client:logging in using static token

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.