Update LLM to use o4-mini as default with Azure OpenAI environment variables #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the LLM implementation to use
o4-mini
as the default model and introduces support for Azure OpenAI environment variables while maintaining full backward compatibility.Changes Made
🔧 Core Updates
gpt-4
too4-mini
AZURE_OPENAI_ENDPOINT
- Azure OpenAI endpoint URL (preferred)AZURE_OPENAI_API_KEY
- Azure OpenAI API key (preferred)OPENAI_URL
andOPENAI_API_KEY
for backward compatibility📚 Documentation
🧹 Code Quality
github.com/sashabaranov/go-openai
)Example Usage
New (Recommended)
Legacy (Still Supported)
Backward Compatibility
The implementation prioritizes new Azure OpenAI environment variables while gracefully falling back to existing ones, ensuring:
Testing
Fixes #21.
💡 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.