+
Skip to content

Conversation

francojc
Copy link

@francojc francojc commented Jul 1, 2025

Summary

Implements support for custom OpenAI-compatible providers (GitHub Copilot, Groq, etc.) with direct API key authentication and repo-local configuration.

Key Features

  • Dynamic provider registration using YAML configuration
  • Support for any OpenAI-compatible API endpoint
  • Direct command-line API keys (no environment variables)
  • Comprehensive Pydantic validation
  • Repo-local providers.yaml configuration
  • Backward compatibility with all built-in providers

Configuration Example

custom_providers:
  - name: "github-copilot"
    display_name: "GitHub Copilot"
    api_base_url: "https://api.githubcopilot.com"
    models:
      - name: "gemini-2.5-pro"
        context_length: 1000000
        max_output_tokens: 8192

Usage

# Development
uv run consult7 github-copilot your-api-key --test

# Claude Desktop
"args": ["run", "--directory", "/path/to/project", "consult7", "github-copilot", "API_KEY"]

Test Plan

  • Custom provider registration working
  • Built-in providers unchanged
  • Configuration validation
  • API key handling
  • Error isolation
  • Documentation updated

🤖 Generated with Claude Code

francojc and others added 4 commits June 30, 2025 16:56
- Add dynamic provider registration system using YAML configuration
- Support repo-local providers.yaml configuration files
- Implement ConfigurableOpenAIProvider for generic OpenAI-compatible APIs
- Add comprehensive Pydantic validation for provider configurations
- Include GitHub Copilot, Groq, and custom provider examples
- Update README with custom provider setup instructions
- Use direct command-line API keys instead of environment variables
- Maintain backward compatibility with all built-in providers

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载