mirror of
https://github.com/coaidev/coai.git
synced 2025-05-21 14:00:13 +09:00
16 lines
463 B
Go
16 lines
463 B
Go
package claude
|
|
|
|
// ChatBody is the request body for anthropic claude
|
|
type ChatBody struct {
|
|
Prompt string `json:"prompt"`
|
|
MaxTokensToSample int `json:"max_tokens_to_sample"`
|
|
Model string `json:"model"`
|
|
Stream bool `json:"stream"`
|
|
}
|
|
|
|
// ChatResponse is the native http request and stream response for anthropic claude
|
|
type ChatResponse struct {
|
|
Completion string `json:"completion"`
|
|
LogId string `json:"log_id"`
|
|
}
|