feat: support claude3 not stream

This commit is contained in:
CaIon
2024-03-08 18:26:18 +08:00
parent 68c4796298
commit 84ca046435
7 changed files with 174 additions and 49 deletions
+6
View File
@@ -61,3 +61,9 @@ type CompletionsStreamResponse struct {
FinishReason string `json:"finish_reason"`
} `json:"choices"`
}
type Usage struct {
PromptTokens int `json:"prompt_tokens"`
CompletionTokens int `json:"completion_tokens"`
TotalTokens int `json:"total_tokens"`
}