use prompt templates

This commit is contained in:
Michael Yang
2023-07-06 10:40:11 -07:00
committed by Jeffrey Morgan
parent f805a65c42
commit 68e6b4550c
17 changed files with 110 additions and 17 deletions

View File

@@ -34,3 +34,11 @@ type GenerateRequest struct {
type GenerateResponse struct {
Response string `json:"response"`
}
type TokenResponse struct {
Choices []TokenResponseChoice `json:"choices"`
}
type TokenResponseChoice struct {
Text string `json:"text"`
}