Added a files endpoint, corrected a documents bug in answers requests, added error messages to API error handling (#6)

Co-authored-by: eyelevelai <33876565+eyelevelai@users.noreply.github.com>
This commit is contained in:
blfletcher
2021-07-18 14:32:20 -06:00
committed by GitHub
parent 2be4a268a8
commit 6297de371c
5 changed files with 79 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import (
)
type AnswerRequest struct {
Documents [][]string `json:"documents"`
Documents []string `json:"documents"`
Question string `json:"question"`
SearchModel string `json:"search_model"`
Model string `json:"model"`