Skip to content

Commit 3096d1c

Browse files
committed
Add examples
1 parent 01ce673 commit 3096d1c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

cmd/eval/eval.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ func NewEvalCommand(cfg *command.Config) *cobra.Command {
8787
8888
See https://docs.github.com/github-models/use-github-models/storing-prompts-in-github-repositories#supported-file-format for more information.
8989
`),
90-
Example: "gh models eval my_prompt.prompt.yml",
91-
Args: cobra.ExactArgs(1),
90+
Example: heredoc.Doc(`
91+
gh models eval my_prompt.prompt.yml
92+
gh models eval --org my-org my_prompt.prompt.yml
93+
`),
94+
Args: cobra.ExactArgs(1),
9295
RunE: func(cmd *cobra.Command, args []string) error {
9396
promptFilePath := args[0]
9497

cmd/run/run.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,14 @@ func NewRunCommand(cfg *command.Config) *cobra.Command {
207207
When using prompt files, you can pass template variables using the %[1]s--var%[1]s flag:
208208
%[1]sgh models run --file prompt.yml --var name=Alice --var topic=AI%[1]s
209209
210+
When running inference against an organization, pass the organization name using the %[1]s--org%[1]s flag:
211+
%[1]sgh models run --org my-org openai/gpt-4o-mini "What is AI?"%[1]s
212+
210213
The return value will be the response to your prompt from the selected model.
211214
`, "`"),
212215
Example: heredoc.Doc(`
213216
gh models run openai/gpt-4o-mini "how many types of hyena are there?"
217+
gh models run --org my-org openai/gpt-4o-mini "how many types of hyena are there?"
214218
gh models run --file prompt.yml --var name=Alice --var topic="machine learning"
215219
`),
216220
Args: cobra.ArbitraryArgs,

0 commit comments

Comments
 (0)