File upload endpoint (#7)

This commit is contained in:
blfletcher
2021-08-03 09:51:23 -06:00
committed by GitHub
parent 6297de371c
commit 3dfb5bd804
4 changed files with 106 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import (
type AnswerRequest struct {
Documents []string `json:"documents"`
File string `json:"file"`
Question string `json:"question"`
SearchModel string `json:"search_model"`
Model string `json:"model"`
@@ -16,6 +17,7 @@ type AnswerRequest struct {
Examples [][]string `json:"examples"`
MaxTokens int `json:"max_tokens"`
Stop []string `json:"stop"`
Temperature *float64 `json:"temperature,omitempty"`
}
type AnswerResponse struct {