feat: support cloudflare worker ai

This commit is contained in:
CalciumIon committed 2024-07-13 19:55:22 +08:00
1 parent 1086340e14
commit fe4665fd99
15 files changed
+296 -28

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ type CohereRequest struct {
ChatHistory []ChatHistory `json:"chat_history"`
Message string `json:"message"`
Stream bool `json:"stream"`
MaxTokens int64 `json:"max_tokens"`
MaxTokens int `json:"max_tokens"`
}
type ChatHistory struct {