Token auth (#314)

This commit is contained in:
Patrick Devine
2023-08-10 11:34:25 -07:00
committed by GitHub
parent bea683e3bf
commit be989d89d1
3 changed files with 233 additions and 6 deletions

View File

@@ -98,6 +98,10 @@ type ListResponseModel struct {
Size int `json:"size"`
}
type TokenResponse struct {
Token string `json:"token"`
}
type GenerateResponse struct {
Model string `json:"model"`
CreatedAt time.Time `json:"created_at"`