-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(api): add support for open responses specification #8063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
| defer bgCancel() | ||
|
|
||
| // Update status to in_progress | ||
| store.UpdateStatus(responseID, schema.ORStatusInProgress, nil) |
Check warning
Code scanning / gosec
Errors unhandled Warning
| if bgErr != nil { | ||
| xlog.Error("Background response failed", "response_id", responseID, "error", bgErr) | ||
| now := time.Now().Unix() | ||
| store.UpdateStatus(responseID, schema.ORStatusFailed, &now) |
Check warning
Code scanning / gosec
Errors unhandled Warning
|
|
||
| // Update final response in store | ||
| if finalResponse != nil { | ||
| store.UpdateResponse(responseID, finalResponse) |
Check warning
Code scanning / gosec
Errors unhandled Warning
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Description
This PR add initial support for openresposes: https://www.openresponses.org/specification
Fixes #5005
Supports:
Notes for Reviewers
Signed commits