| 267 | for (const model of data) { | 267 | for (const model of data) { |
| 268 | const option = document.createElement('option'); | 268 | const option = document.createElement('option'); |
| 269 | option.value = model.id; | 269 | option.value = model.id; |
| 270 | option.text = model.id; | 270 | option.text = model.name; |
| 271 | option.selected = model.id === textgen_settings.openrouter_model; | 271 | option.selected = model.id === textgen_settings.openrouter_model; |
| 272 | $('#openrouter_model').append(option); | 272 | $('#openrouter_model').append(option); |
| 273 | } | 273 | } |