You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/github-models/github-models-at-scale/use-models-at-scale.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,8 @@ See [AUTOTITLE](/github-models/about-github-models).
33
33
34
34
## Best practices for using {% data variables.product.prodname_github_models %} at scale
35
35
36
+
The following best practices can help you effectively use {% data variables.product.prodname_github_models %} across your organization.
37
+
36
38
### Compare and evaluate AI models for governance and compliance
37
39
38
40
Review and compare available AI models against your company’s governance, data security, and compliance requirements. You can do this in any Models-enabled {% data variables.product.github %} repository or in the {% data variables.product.prodname_github_models %} catalog from the {% data variables.product.prodname_marketplace %} at https://github.com/marketplace?type=models. Your considerations may include:
@@ -113,7 +115,7 @@ Large software development projects often contain issues full of technical detai
113
115
important questions.
114
116
- role: user
115
117
content: 'Summarize this issue, please - {% raw %}{{input}}{% endraw %}'
Copy file name to clipboardExpand all lines: content/github-models/quickstart.md
+3-13Lines changed: 3 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ This guide helps you try out models quickly in the playground, then shows you ho
22
22
## Step 1: Try models in the playground
23
23
24
24
1. Go to **[https://github.com/marketplace/models](https://github.com/marketplace/models)**.
25
-
26
25
1. In the playground, select at least one model from the dropdown menu.
27
26
1. Test out different prompts using the **Chat** view, and compare responses from different models.
28
27
1. Use the **Parameters** view to customize the parameters for the models you are testing, then see how they impact responses.
@@ -70,10 +69,9 @@ To call models programmatically, you’ll need:
70
69
71
70
1. To try other models, change the value of the `model` field in the JSON payload to one from the [marketplace](https://github.com/marketplace/models).
72
71
73
-
## Step 3: Run models in GitHub Actions
72
+
## Step 3: Run models in {% data variables.product.prodname_actions %}
74
73
75
74
1. In your repository, create a workflow file at `.github/workflows/models-demo.yml`.
76
-
77
75
1. Paste the following workflow into the file you just created.
78
76
79
77
```yaml copy
@@ -118,13 +116,12 @@ This example shows how to send a prompt to a model and use the response in your
118
116
{% data variables.product.prodname_github_models %} supports reusable prompts defined in`.prompt.yml` files. Once you add this file to your repository, it will appear in the Models page of your repository and can be run directly in the Prompt Editor and evaluation tooling. Learn more about [AUTOTITLE](/github-models/use-github-models/storing-prompts-in-github-repositories).
119
117
120
118
1. In your repository, create a file named `summarize.prompt.yml`. You can save it in any directory.
121
-
122
119
1. Paste the following example prompt into the file you just created.
123
120
124
121
```yaml copy
125
122
name: Text Summarizer
126
123
description: Summarizes input text concisely
127
-
model: gpt-4o-mini
124
+
model: openai/gpt-4o-mini
128
125
modelParameters:
129
126
temperature: 0.5
130
127
messages:
@@ -139,11 +136,8 @@ This example shows how to send a prompt to a model and use the response in your
139
136
```
140
137
141
138
1. Commit and push the file to your repository.
142
-
143
139
1. Go to the **Models** tab in your repository.
144
-
145
140
1. In the navigation menu, click **{% octicon "note" aria-hidden="true" aria-label="none" %} Prompts**, then click on the prompt file.
146
-
147
141
1. The prompt will open in the prompt editor. Click **Run**. A right-hand sidebar will appear asking you to enter input text. Enter any input text, then click **Run** again in the bottom right corner to test it out.
148
142
149
143
> [!NOTE]
@@ -154,13 +148,12 @@ This example shows how to send a prompt to a model and use the response in your
154
148
Evaluations help you measure how different models respond to the same inputs so you can choose the best one for your use case.
155
149
156
150
1. Go back to the `summarize.prompt.yml` file you created in the previous step.
157
-
158
151
1. Update the file to match the following example.
159
152
160
153
```yaml copy
161
154
name: Text Summarizer
162
155
description: Summarizes input text concisely
163
-
model: gpt-4o-mini
156
+
model: openai/gpt-4o-mini
164
157
modelParameters:
165
158
temperature: 0.5
166
159
messages:
@@ -190,11 +183,8 @@ Evaluations help you measure how different models respond to the same inputs so
190
183
```
191
184
192
185
1. Commit and push the file to your repository.
193
-
194
186
1. In your repository, click the **Models** tab. Then click **{% octicon "note" aria-hidden="true" aria-label="none" %} Prompts** and reopen the same prompt in the prompt editor.
195
-
196
187
1. In the top left-hand corner, you can toggle the view from **Edit** to **Compare**. Click **Compare**.
197
-
198
188
1. Your evaluation will be set up automatically. Click **Run** to see results.
Copy file name to clipboardExpand all lines: content/github-models/use-github-models/storing-prompts-in-github-repositories.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ versions:
8
8
ghec: '*'
9
9
---
10
10
11
-
Prompts can be stored as files directly within GitHub repositories. This unlocks the ability to view your prompts in an organized UI, share them with non-technical stakeholders, and run seamless iterations and comparisons on adjustments to models and prompts.
11
+
Prompts can be stored as files directly within {% data variables.product.github %} repositories. This unlocks the ability to view your prompts in an organized UI, share them with non-technical stakeholders, and run seamless iterations and comparisons on adjustments to models and prompts.
12
12
13
13
## Benefits
14
14
15
-
* Easy integration with the new suite of AI development tools directly on GitHub.
15
+
* Easy integration with the new suite of AI development tools directly on {% data variables.product.github %}.
16
16
* Simple and scalable from simple to complex use cases.
17
17
* Uses a widely supported format, compatible with existing tools.
0 commit comments