-
Notifications
You must be signed in to change notification settings - Fork 753
feat: add CometAPI provider integration #1364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 CometAPI as a new provider integration to enable gateway users to route traffic to CometAPI's unified API that provides access to 500+ foundation models across chat and embedding capabilities.
- Adds CometAPI provider configuration with OpenAI-compatible API structure
- Integrates chat completion and embedding endpoints with appropriate response transforms
- Includes comprehensive model definitions for GPT-5, Claude, Gemini, Grok, DeepSeek, and Qwen variants
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/providers/index.ts | Registers CometAPI provider configuration in the main provider registry |
src/providers/cometapi/index.ts | Main configuration file defining CometAPI provider structure and response transforms |
src/providers/cometapi/embed.ts | Embedding endpoint configuration using OpenAI-compatible format |
src/providers/cometapi/chatComplete.ts | Chat completion configuration with streaming support and custom model defaults |
src/providers/cometapi/api.ts | API configuration defining base URL, headers, and endpoint mappings |
src/globals.ts | Adds CometAPI constant and includes it in valid providers list |
src/data/providers.json | Provider metadata entry with description and base URL |
src/data/models.json | Comprehensive model definitions for all supported CometAPI models |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New CometAPI provider integration with chat completion and embedding support. Minor default model configuration issue found.
Skipped files
src/data/models.json
: Skipped file patternsrc/data/providers.json
: Skipped file pattern
Model default updated from gpt-5-chat-latest to gpt-3.5-turbo |
Added CometAPI provider integration with version bump and new anthropic beta header support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CometAPI provider integration review - potential issues in configuration and imports
Hi @narengogi, |
Description
Motivation
Type of Change
How Has This Been Tested?
Chat:
Embedding:
Checklist
Related Issues
#1354