Skip to content

Configure genaiscript to support 8000 tokens and remove system scripts#1498

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/configure-genaiscript-8000-tokens
Closed

Configure genaiscript to support 8000 tokens and remove system scripts#1498
Copilot wants to merge 2 commits intomainfrom
copilot/configure-genaiscript-8000-tokens

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 10, 2025

Changes

Modified the shared genaiscript workflow configuration to optimize GenAIScript execution with explicit token limits and disabled system scripts.

What Changed

Updated .github/workflows/shared/genaiscript.md to configure the GenAI prompt frontmatter with:

  1. Token Limit: Added maxDataTokens: 8000 to explicitly set the token limit for models that support 8000 tokens
  2. System Scripts: Added system: [] to disable all GenAIScript system scripts

Technical Details

The "Convert prompt to GenAI format" step now generates prompt files with the following frontmatter:

---
model: github:gpt-4o-mini
maxDataTokens: 8000
system: []
---

This is accomplished by adding two additional sed commands during the prompt conversion process:

  • sed -i '3i maxDataTokens: 8000' - Inserts the token limit configuration
  • sed -i '4i system: []' - Disables system scripts

Impact

All workflows that import shared/genaiscript.md are affected:

  • issue-summarizer-genaiscript.md
  • smoke-genaiscript.md

The compiled .lock.yml files have been automatically updated to reflect these changes.

Testing

✅ All unit tests pass
✅ Workflows compile successfully without errors
✅ Manual verification confirms correct frontmatter generation

Original prompt

In the shared agentic workflow for genaiscript, configure it to support models with 8000 tokens.

  • remove all system scripts

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Configure genaiscript to support models with 8000 tokens Configure genaiscript to support 8000 tokens and remove system scripts Oct 10, 2025
Copilot AI requested a review from pelikhan October 10, 2025 22:51
@pelikhan pelikhan closed this Oct 11, 2025
@pelikhan pelikhan deleted the copilot/configure-genaiscript-8000-tokens branch October 17, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants