Enha: use ormodels

This commit is contained in:
Grail Finder
2025-09-02 10:12:11 +03:00
parent 4fed716f8c
commit a1f38c2b26

View File

@@ -158,19 +158,9 @@ func (p *openRouterParser) ParseBytes(body []byte) (map[string]any, error) {
}
func (p *openRouterParser) MakePayload(prompt string) io.Reader {
// Models to rotate through
models := []string{
"google/gemini-2.0-flash-exp:free",
"deepseek/deepseek-chat-v3-0324:free",
"mistralai/mistral-small-3.2-24b-instruct:free",
"qwen/qwen3-14b:free",
"deepseek/deepseek-r1:free",
"google/gemma-3-27b-it:free",
"meta-llama/llama-3.3-70b-instruct:free",
}
// Get next model index using atomic addition for thread safety
p.modelIndex++
model := models[int(p.modelIndex)%len(models)]
model := ORFreeModels[int(p.modelIndex)%len(ORFreeModels)]
strPayload := fmt.Sprintf(`{
"model": "%s",
"max_tokens": 300,