Closed izxxr closed 2 years ago
That is better.
The problem that I have run into while using API is inconsistency of responses. By that I mean, That responses are not consistent. For an instance, This is the response JSON on normal AI response:
[{"message": "response"}, {"response_time"}: "Normal"]
Even though this should be a simple JSON without arrays but okay, But why does ratelimit JSON look like this:
["Ratelimit warning message"]
Why can't it be:
[{"message": "Ratelimit Warning"}]
Or better way,
{ "message": "Ratelimit warning", "response_time": "normal" }
This was just AI endpoint there can be improvements on other endpoints too (Making all responses similar and organised). So, It's easy for developers to make wrappers as well as users to use the API.
Don't want to edit v4 response by any chance now because everyone is already using that. v5 will be good!
Gotcha
The problem that I have run into while using API is inconsistency of responses. By that I mean, That responses are not consistent. For an instance, This is the response JSON on normal AI response:
Even though this should be a simple JSON without arrays but okay, But why does ratelimit JSON look like this:
Why can't it be:
Or better way,
This was just AI endpoint there can be improvements on other endpoints too (Making all responses similar and organised). So, It's easy for developers to make wrappers as well as users to use the API.