Feat: add CometAPI to LLMFactory and update related mappings (#10119)

### Related issues
#10078

### What problem does this PR solve?
Integrate CometAPI provider.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Documentation Update
This commit is contained in:
TensorNull
2025-09-18 09:51:29 +08:00
committed by GitHub
parent 80ede65bbe
commit f12b9fdcd4
9 changed files with 315 additions and 2 deletions

View File

@ -958,3 +958,12 @@ class Ai302Embed(Base):
if not base_url:
base_url = "https://api.302.ai/v1/embeddings"
super().__init__(key, model_name, base_url)
class CometEmbed(Base):
_FACTORY_NAME = "CometAPI"
def __init__(self, key, model_name, base_url="https://api.cometapi.com/v1/embeddings"):
if not base_url:
base_url = "https://api.cometapi.com/v1/embeddings"
super().__init__(key, model_name, base_url)