Skip to content

Commit 3fa5b45

Browse files
authored
πŸ”§ πŸ’₯ #235: Extended the non-streaming chat error schema with new fields to give clients more context around the error (#236)
- Introduced a new error type to hold useful context like HTTP response status, error name, message - If all providers are unavailable, we are not throwing 500 error anymore but 503 - Start throwing unknown_error with 500 status on unexpected exceptions - Predefined all static HTTP errors instead of creating them every time they occur - Introduced the name field on the error schema - Changed the req/response schema to snake_case (hopefully, to stick with it forever) - Removed Bruno collections (it doesn't cover all our needs like websocket or gRPC protocol) - Moved all schemas to `api/schema` package - Made router list API opaque - Changed the field name for overrides not to clash with defined statements in some languages
1 parent 3b37d0b commit 3fa5b45

30 files changed

+328
-1974
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ See [API Reference](https://glide.einstack.ai/api-reference/introduction) for mo
9494
"role": "user",
9595
"content": "Where was it played?"
9696
},
97-
"messageHistory": [
97+
"message_history": [
9898
{"role": "system", "content": "You are a helpful assistant."},
9999
{"role": "user", "content": "Who won the world series in 2020?"},
100100
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."}

β€Ždocs/api/Language API/πŸ’¬ Chat Stream.bruβ€Ž

Lines changed: 0 additions & 11 deletions
This file was deleted.

β€Ždocs/api/Language API/πŸ’¬ Chat.bruβ€Ž

Lines changed: 0 additions & 21 deletions
This file was deleted.

β€Ždocs/api/Language API/πŸ”§ Router List.bruβ€Ž

Lines changed: 0 additions & 21 deletions
This file was deleted.

β€Ždocs/api/bruno.jsonβ€Ž

Lines changed: 0 additions & 5 deletions
This file was deleted.

β€Ždocs/api/environments/Development.bruβ€Ž

Lines changed: 0 additions & 3 deletions
This file was deleted.

β€Ždocs/api/πŸ”§ Health.bruβ€Ž

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
Β (0)