Chore: cleaning

This commit is contained in:
Grail Finder
2025-08-08 15:47:29 +03:00
parent 6600cf8034
commit 9e2165e056
3 changed files with 25 additions and 25 deletions

View File

@@ -1 +0,0 @@
package main

View File

@@ -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"`

View File

@@ -54,6 +54,7 @@ func (p *deepSeekParser) MakePayload(prompt string) io.Reader {
"stream_options": null,
"suffix": null,
"temperature": 1,
"n_probs": 10,
"top_p": 1
}`, prompt))
}