[Integration]: HopBase

未关闭
#829 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 9 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
42/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
ai, documentation

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
114
派生
332
平均合并
5 天 1 小时
30 天内合并 PR
13

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

deepset-ai/haystack-integrations 的其他 Issue

查看 deepset-ai/haystack-integrations 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。