summaryrefslogtreecommitdiff
path: root/models/openrouter.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-06 12:42:06 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-06 12:42:06 +0300
commit4af866079c3f21eab12b02c3158567539ca40c50 (patch)
treed428557aae121ba89e66c728240723a9c4e718ec /models/openrouter.go
parent478a505869bf26b15dcbc77feb2c09c1f2ff4aac (diff)
Chore: linter complaints
Diffstat (limited to 'models/openrouter.go')
-rw-r--r--models/openrouter.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/openrouter.go b/models/openrouter.go
index 29ba0d8..6196498 100644
--- a/models/openrouter.go
+++ b/models/openrouter.go
@@ -143,7 +143,8 @@ type ORModels struct {
func (orm *ORModels) ListModels(free bool) []string {
resp := []string{}
- for _, model := range orm.Data {
+ for i := range orm.Data {
+ model := &orm.Data[i] // Take address of element to avoid copying
if free {
if model.Pricing.Prompt == "0" && model.Pricing.Completion == "0" {
// treat missing request as free