Fix: openrouter payload, player restore (relogin)

This commit is contained in:
Grail Finder
2025-06-23 19:03:11 +03:00
parent 83513b6c6a
commit 661a320fb5
4 changed files with 19 additions and 21 deletions

View File

@ -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)
}