Enha: use ormodels
This commit is contained in:
		| @@ -158,19 +158,9 @@ func (p *openRouterParser) ParseBytes(body []byte) (map[string]any, error) { | |||||||
| } | } | ||||||
|  |  | ||||||
| func (p *openRouterParser) MakePayload(prompt string) io.Reader { | 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 | 	// Get next model index using atomic addition for thread safety | ||||||
| 	p.modelIndex++ | 	p.modelIndex++ | ||||||
| 	model := models[int(p.modelIndex)%len(models)] | 	model := ORFreeModels[int(p.modelIndex)%len(ORFreeModels)] | ||||||
| 	strPayload := fmt.Sprintf(`{ | 	strPayload := fmt.Sprintf(`{ | ||||||
| 	"model": "%s", | 	"model": "%s", | ||||||
| 	"max_tokens": 300, | 	"max_tokens": 300, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder