How can LLMs understand and perform meta tasks? (e.g. summarization)
The same is true for prompts like "Be brief" or "Explain in a few sentences". Since this works, the LLM must actually have an understanding of text length.
The same is true for prompts like "Be brief" or "Explain in a few sentences". Since this works, the LLM must actually have an understanding of text length.
So what I kinda need is a simple, clear & searchable website with all status codes (number, name, description, example).
Knowing the web. Something like this is probably already out there, but I haven't found it yet.
- https://petstore.swagger.io/ (older version)
- https://petstore3.swagger.io/
However, imho they are really bad examples as they do not follow basic principles of good API design. Here are some reasons:
1. They use "/pet" instead of "/pets" for the pet collection (Besides the fact that "/pets" isn't even an endpoint and you can not get a list of all pets ^^).
2. The login & logout endpoints are under /user (i.e. /user/login, /user/logout)
3. You do not use PUT on a collection as they did with PUT /pet
4. You do not use POST as they did with /pet/{pet_id} to update a single resource.
5. You do not use POST to create a resource and PUT to update the same resource as they did with PUT /pet and POST /pet
Some might argue that it is a matter of opinion that these examples are bad. You may be right, but at minimum an API should be self-consistent. But even that is not the case here.
That's why I'm wondering what this is all about. Do I not know the latest API design principles yet or why are the examples for a de facto industry standard so lousy?
And btw what is your opinion on the API design of the examples?