Skip to content

Commit d71678f

Browse files
authored
Merge pull request #376 from rajbos/copilot/update-sync-model-data-prompt
Strengthen sync-models prompt to prevent adding undocumented models
2 parents 25fe910 + ec66df2 commit d71678f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/prompts/sync-models-prompt.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Update `src/tokenEstimators.json` and `src/modelPricing.json` with missing model
1515
- Add it to the appropriate JSON file(s)
1616
- Use sensible defaults based on existing similar models
1717

18+
> **IMPORTANT**: Only add models that are **explicitly listed** on the documentation page above. Do NOT add models based on your own knowledge of AI models, third-party sources, or speculation about what models might exist. If a model is not present on that specific documentation page, it must not be added.
19+
1820
## Token Estimators (`src/tokenEstimators.json`)
1921

2022
For missing models in tokenEstimators.json:
@@ -53,7 +55,7 @@ For missing models in modelPricing.json:
5355
- **ONLY** update `lastUpdated` field in `src/modelPricing.json` to today's date (YYYY-MM-DD format) **if you added new models to the pricing file**
5456
- If no models were added, do NOT update the `lastUpdated` field
5557
- Do NOT modify the `sources` section unless you have specific pricing data
56-
- Do not make up new model names. If they are not in any of the lists in the documentation, then we do not add them to the json
58+
- Do NOT add models that are not explicitly listed on the documentation page — if a model is not on that page, skip it entirely
5759

5860
## Output Format
5961

@@ -64,6 +66,7 @@ For missing models in modelPricing.json:
6466

6567
## Constraints
6668

69+
- **Only add models that appear on the GitHub Copilot supported models documentation page** (`https://docs.github.com/en/copilot/reference/ai-models/supported-models`). Do NOT add models from any other source, from your own training knowledge, or that you believe might exist — only what is explicitly listed on that page.
6770
- Only modify `src/tokenEstimators.json` and `src/modelPricing.json`
6871
- Do not open a PR (the workflow will handle that)
6972
- Preserve all existing entries and formatting conventions

0 commit comments

Comments
 (0)