Fix: openrouter payload, player restore (relogin)
This commit is contained in:
		| @@ -160,13 +160,15 @@ func (p *openRouterParser) ParseBytes(body []byte) (map[string]any, error) { | ||||
| } | ||||
|  | ||||
| func (p *openRouterParser) MakePayload(prompt string) io.Reader { | ||||
| 	return strings.NewReader(fmt.Sprintf(`{ | ||||
| 	strPayload := fmt.Sprintf(`{ | ||||
| 	"model": "deepseek/deepseek-chat-v3-0324:free", | ||||
| 	"messages": [ | ||||
| 		{ | ||||
| 		"role": "user", | ||||
| 		"content": %s | ||||
| 		"content": "%s" | ||||
| 		} | ||||
| 	] | ||||
| 	}`, prompt)) | ||||
| 	}`, prompt) | ||||
| 	p.log.Debug("made openrouter payload", "payload", strPayload) | ||||
| 	return strings.NewReader(strPayload) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder