Skip to content

Conversation

@p-
Copy link
Contributor

@p- p- commented Dec 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 10, 2025 15:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds initial support for the OpenAI API endpoint to the Taskflow Agent framework, enabling users to leverage OpenAI's API alongside existing GitHub Models and GitHub Copilot API endpoints.

Key changes:

  • Added AI_API_OPENAI enum value and URL mapping (https://api.openai.com/v1)
  • Implemented OpenAI-specific handling in model listing and tool calling detection logic
  • Set default model to gpt-4o for OpenAI endpoint, consistent with GitHub Copilot

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/seclab_taskflow_agent/capi.py Added OpenAI endpoint enum, URL construction, model catalog handling, and tool calling capability detection
src/seclab_taskflow_agent/agent.py Added default model selection for OpenAI endpoint
tests/test_api_endpoint_config.py Added test to verify OpenAI endpoint URL generation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@p- p- merged commit 4f4e0ac into main Dec 10, 2025
15 checks passed
@p- p- deleted the p--initial-openai-api-support branch December 10, 2025 16:39
@kevinbackhouse kevinbackhouse mentioned this pull request Dec 10, 2025
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.

3 participants