Chore: cleaning
This commit is contained in:
@@ -13,30 +13,30 @@ type Answer struct {
|
||||
// resp time?
|
||||
}
|
||||
|
||||
type OpenRouterResp struct {
|
||||
ID string `json:"id"`
|
||||
Provider string `json:"provider"`
|
||||
Model string `json:"model"`
|
||||
Object string `json:"object"`
|
||||
Created int `json:"created"`
|
||||
Choices []struct {
|
||||
Logprobs any `json:"logprobs"`
|
||||
FinishReason string `json:"finish_reason"`
|
||||
NativeFinishReason string `json:"native_finish_reason"`
|
||||
Index int `json:"index"`
|
||||
Message struct {
|
||||
Role string `json:"role"`
|
||||
Content string `json:"content"`
|
||||
Refusal any `json:"refusal"`
|
||||
Reasoning any `json:"reasoning"`
|
||||
} `json:"message"`
|
||||
} `json:"choices"`
|
||||
Usage struct {
|
||||
PromptTokens int `json:"prompt_tokens"`
|
||||
CompletionTokens int `json:"completion_tokens"`
|
||||
TotalTokens int `json:"total_tokens"`
|
||||
} `json:"usage"`
|
||||
}
|
||||
// type OpenRouterResp struct {
|
||||
// ID string `json:"id"`
|
||||
// Provider string `json:"provider"`
|
||||
// Model string `json:"model"`
|
||||
// Object string `json:"object"`
|
||||
// Created int `json:"created"`
|
||||
// Choices []struct {
|
||||
// Logprobs any `json:"logprobs"`
|
||||
// FinishReason string `json:"finish_reason"`
|
||||
// NativeFinishReason string `json:"native_finish_reason"`
|
||||
// Index int `json:"index"`
|
||||
// Message struct {
|
||||
// Role string `json:"role"`
|
||||
// Content string `json:"content"`
|
||||
// Refusal any `json:"refusal"`
|
||||
// Reasoning any `json:"reasoning"`
|
||||
// } `json:"message"`
|
||||
// } `json:"choices"`
|
||||
// Usage struct {
|
||||
// PromptTokens int `json:"prompt_tokens"`
|
||||
// CompletionTokens int `json:"completion_tokens"`
|
||||
// TotalTokens int `json:"total_tokens"`
|
||||
// } `json:"usage"`
|
||||
// }
|
||||
|
||||
type DSResp struct {
|
||||
ID string `json:"id"`
|
||||
|
Reference in New Issue
Block a user