Code Monkey home page Code Monkey logo

Comments (6)

mediaexplorer74 avatar mediaexplorer74 commented on August 17, 2024

I try to test this project using the example here but failed:

....
    972 except JSONDecodeError as e:
    973     # Catch JSON-related errors and raise as requests.JSONDecodeError
    974     # This aliases json.JSONDecodeError and simplejson.JSONDecodeError
--> 975     raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Is there any problem with my usage?

Switch to normal language (C#). Python is not cool thing.

from chatgpt.

hongyi-zhao avatar hongyi-zhao commented on August 17, 2024

I'm on Linux, and C# is a Microsoft based language, IIRC. More precisely, I'm not familiar with it :-(

from chatgpt.

PawanOsman avatar PawanOsman commented on August 17, 2024

We updated the API endpoint check readme for docs

from chatgpt.

hongyi-zhao avatar hongyi-zhao commented on August 17, 2024
  1. According to the guidance here, I obtained my API key from the #Bot channel by sending /key command, but still failed when running the following test:
$ curl --location 'https://api.pawan.krd/v1/images/generations' --header 'Authorization: Bearer pk-xxx' --header 'Content-Type: application/json' --data '{
    "prompt": "a photo of a happy corgi puppy sitting and facing forward, studio light, longshot",
    "n": 1,
    "size": "1024x1024"
}'
{"status":false,"error":"Invalid API key","hint":"You can get an API key from https://discord.pawan.krd","info":"https://gist.github.com/PawanOsman/72dddd0a12e5829da664a43fc9b9cf9a","support":"https://discord.pawan.krd"}
  1. Does the provided key support GPT-4?

from chatgpt.

PawanOsman avatar PawanOsman commented on August 17, 2024

make sure your API Key pk-xxx is correct , no currently GPT-4 isn't supported

from chatgpt.

hongyi-zhao avatar hongyi-zhao commented on August 17, 2024

Thank you for pointing this out. The above problem is caused by the loss of some API key characters during the copying and pasting process.

from chatgpt.

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.