[Integration]: HopBase

Open
#829 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 9 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
ai, documentation

Research direction

The issue names integrations/hopbase.md, logos/hopbase.svg, and draft-integration.md; read the integration proposal process and check the existing submission in #720. The author says the integration page and logo already exist and will open a PR after approval, so this issue is waiting for maintainer review rather than offering a ready implementation task.

Written by the indexing model from the issue text.

Description

Stage

Ready: integration exists and works, proposing to list it

Integration or project name

HopBase

Integration type

Model Provider

Published package or repo (if it exists)

https://pypi.org/project/haystack-ai/ and https://github.com/deepset-ai/haystack (uses Haystack's built-in OpenAIChatGenerator and OpenAIResponsesChatGenerator against https://api.hop-base.com/v1, so no separate package is needed; API docs at https://hop-base.com/en/docs)

Need or proof of use

Haystack pipelines and agents that call models across multiple vendors (OpenAI GPT, Google Gemini, DeepSeek, Zhipu GLM, Alibaba Qwen, Moonshot Kimi, xAI Grok and others) can route through one OpenAI-compatible base URL (https://api.hop-base.com/v1) and one HOPBASE_API_KEY secret without custom glue components — switching vendors in a pipeline is just changing the model string, and both Chat Completions and the Responses API are served on the same base URL.

Verified end-to-end with haystack-ai 3.5.0 against the live https://api.hop-base.com/v1 endpoint:

  • OpenAIChatGenerator with Secret.from_env_var("HOPBASE_API_KEY") and api_base_url="https://api.hop-base.com/v1" (glm-5.3 and gpt-6.1-sol)
  • OpenAIResponsesChatGenerator on the same base URL (gpt-6.1-sol)
  • Streaming responses with print_streaming_chunk (gpt-6.1-sol)
  • Tool calling inside a Haystack Agent (glm-5.3)

The integration page (integrations/hopbase.md and logos/hopbase.svg, following draft-integration.md) was previously submitted in #720, which predated the new proposal process. I'll wait for the approved label here before opening a new PR linking this issue.

Short description

HopBase is an AI API gateway that serves GPT, Gemini, DeepSeek, GLM, Qwen, Kimi, Grok and other models behind one OpenAI-compatible base URL (https://api.hop-base.com/v1), exposing both Chat Completions and the Responses API. In Haystack, users connect with the built-in OpenAIChatGenerator and OpenAIResponsesChatGenerator components using Secret.from_env_var("HOPBASE_API_KEY"), and GET /v1/models returns the exact model IDs enabled for that key.

Disclosure: I work on HopBase. If a maintainer would like to verify the examples live, I'm happy to provide a spend-capped test key privately.

Dominant language
Python
Stars
114
Forks
332
Avg merge
5d 1h
Merged PRs (30d)
13

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from deepset-ai/haystack-integrations

All issues in deepset-ai/haystack-integrations

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.