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