Skip to content

feat(inference): Add BagelNet provider for Python client integration #3189

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

data-mission
Copy link

Summary

Implements Python client integration for BagelNet provider, following the HuggingFace Inference Providers integration process (Step 5).

Changes

  • Add BagelNetConversationalTask provider implementation
  • Register provider in PROVIDER_T and PROVIDERS with alphabetical ordering
  • Update InferenceClient docstring to document BagelNet provider
  • Add BagelNet entry to HARDCODED_MODEL_INFERENCE_MAPPING
  • Add unit tests for BagelNet provider

Implementation Details

  • Provider: bagelnet
  • Base URL: https://api.bagel.net
  • Task: conversational (OpenAI-compatible chat completions)
  • Pattern: Follows cerebras.py minimal implementation approach

Prerequisites Completed

  • JavaScript client integration (PR submitted)
  • Model mapping API access (pending HF response)
  • Billing endpoint implemented
  • API infrastructure live at https://api.bagel.net

Related Work

Testing

  • Unit tests included for provider initialization and inheritance
  • Follows HF testing patterns for conversational providers
  • No method overrides needed - uses default OpenAI-compatible behaviour

- Add BagelNetConversationalTask provider implementation
- Register provider in PROVIDER_T and PROVIDERS with alphabetical ordering
- Update InferenceClient docstring to document bagelnet provider
- Add bagelnet entry to HARDCODED_MODEL_INFERENCE_MAPPING
- Add unit tests for BagelNet provider

Implements HuggingFace Inference Providers Step 5: Python client integration
Follows patterns from cerebras.py and other conversational providers
@data-mission
Copy link
Author

Hi @Wauplin @julien-c @Narsil! 👋

This PR adds BagelNet provider support for Python client integration (Step 5 of the inference providers process).

Would appreciate your review when you have a chance. Thanks!

@data-mission data-mission changed the title Add BagelNet provider for Python client integration feat(inference): Add BagelNet provider for Python client integration Jul 8, 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.

1 participant