Giter VIP home page Giter VIP logo

Comments (17)

Jnss98b avatar Jnss98b commented on June 10, 2024 1

Will try to start from the beginning with a new copy of the repo and report back

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

Check if the edgegpt version is 0.11.2

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

It is indeed 0.11.2
image

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

what's your python version?

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

3.11.4

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

Maybe is python version problem, I'm using 3.9.16

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

Oh was this fixed? What was the problem?

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

no, I'm can work in python version 3.11.4, try running this simple code if you can

import asyncio, json
from EdgeGPT.EdgeGPT import Chatbot, ConversationStyle

async def main():
    cookies = json.loads(open("./path/to/cookies.json", encoding="utf-8").read())
    bot = await Chatbot.create(cookies=cookies)
    response = await bot.ask(prompt="Hello world", conversation_style=ConversationStyle.creative, simplify_response=True)
    print(json.dumps(response, indent=2))

    await bot.close()

if __name__ == "__main__":
    asyncio.run(main())

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

Run this in the python interpreter?

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

yes

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

This is what I got after running the snippet above

image

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

oh, you have to modify the location where you put cookies

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

In what file is the cookies path stored?

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

Oh wait I got what you meant

from discordbot-edgegpt.

Jnss98b avatar Jnss98b commented on June 10, 2024

Similar error

image

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

API has error, waiting for fixes

from discordbot-edgegpt.

FuseFairy avatar FuseFairy commented on June 10, 2024

My chatbot can working now, but I still can't reproduce this error.

from discordbot-edgegpt.

Related Issues (20)

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.