@@ -13,12 +13,12 @@ import (
1313 "time"
1414
1515 "github.com/AlecAivazis/survey/v2"
16+ "github.com/MakeNowJust/heredoc"
1617 "github.com/briandowns/spinner"
1718 "github.com/github/gh-models/internal/azuremodels"
1819 "github.com/github/gh-models/internal/sse"
1920 "github.com/github/gh-models/pkg/command"
2021 "github.com/github/gh-models/pkg/util"
21- "github.com/MakeNowJust/heredoc"
2222 "github.com/spf13/cobra"
2323 "github.com/spf13/pflag"
2424)
@@ -205,8 +205,8 @@ func NewRunCommand(cfg *command.Config) *cobra.Command {
205205
206206 The return value will be the response to your prompt from the selected model.
207207 ` , "`" ),
208- Example : "gh models run gpt-4o-mini \" how many types of hyena are there?\" " ,
209- Args : cobra .ArbitraryArgs ,
208+ Example : "gh models run openai/ gpt-4o-mini \" how many types of hyena are there?\" " ,
209+ Args : cobra .ArbitraryArgs ,
210210 RunE : func (cmd * cobra.Command , args []string ) error {
211211 cmdHandler := newRunCommandHandler (cmd , cfg , args )
212212 if cmdHandler == nil {
@@ -413,7 +413,7 @@ func (h *runCommandHandler) getModelNameFromArgs(models []*azuremodels.ModelSumm
413413 if ! model .IsChatModel () {
414414 continue
415415 }
416- prompt .Options = append (prompt .Options , model .FriendlyName )
416+ prompt .Options = append (prompt .Options , azuremodels . FormatIdentifier ( model .Publisher , model . Name ) )
417417 }
418418
419419 err := survey .AskOne (prompt , & modelName , survey .WithPageSize (10 ))
@@ -438,7 +438,6 @@ func validateModelName(modelName string, models []*azuremodels.ModelSummary) (st
438438 foundMatch := false
439439 for _ , model := range models {
440440 if model .HasName (modelName ) {
441- modelName = model .Name
442441 foundMatch = true
443442 break
444443 }
0 commit comments