Chore: linter complaints
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user