1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

transformation methods

This commit is contained in:
Laura
2025-10-03 01:30:40 +02:00
parent ef2af41c9c
commit ae573b1c51
3 changed files with 11 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ func (r *Request) Parse() (*openrouter.ChatCompletionRequest, int, error) {
request.Modalities = append(request.Modalities, openrouter.ModalityImage)
}
request.Transforms = append(request.Transforms, env.Settings.Transformation)
if r.Iterations < 1 || r.Iterations > 50 {
return nil, 0, fmt.Errorf("invalid iterations (1-50): %d", r.Iterations)
}