Comments (6)
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.
I'm on Linux, and C#
is a Microsoft based language, IIRC. More precisely, I'm not familiar with it :-(
from chatgpt.
We updated the API endpoint check readme for docs
from chatgpt.
- 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"}
- Does the provided key support GPT-4?
from chatgpt.
make sure your API Key pk-xxx
is correct , no currently GPT-4 isn't supported
from chatgpt.
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)
- The requested endpoint (POST /v1/embeddings) was not found. please make sure to use "http://localhost:3040/v1" as the base URL HOT 2
- Error getting a new session HOT 2
- i get an error saying my country might not be supported despite it working two days ago HOT 9
- problem when requesting data
- problem HOT 1
- Error while getting new session HOT 4
- Question: HOT 2
- the ai sends empty respones HOT 1
- 他不能回我信息
- The requested endpoint (GET /v1/chat/completions) was not found HOT 18
- Run the API in LAN
- why return openai.InternalServerError: Error code: 503? HOT 2
- gpt 4o support HOT 1
- An error occurred. please try again. Additionally, ensure that your request complies with OpenAI's policy HOT 6
- api returns None HOT 6
- Error: messages is required! and must be an array of objects with content and role properties HOT 2
- System.Net.Http.HttpRequestException: 'Response status code does not indicate success: 401 (Unauthorized).'
- README should include note about access to hosted API being limited to Patreon supporters HOT 1
- Gives an error: type invalid_request_error HOT 12
- BetterGPT Error: ERR_EMPTY_RESPONSE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt.