[Integration]: Wiro AI

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

维护者通常 9 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

Review the integration page referenced in issue #746 and the Wiro AI API documentation. The issue says the overview, setup, generator example, and Agent example are ready to reopen once approved; check the repository’s integration listing instructions and add the Wiro AI entry with those details. Done means the listing accurately describes the OpenAI compatible setup and includes both examples.

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

描述

Stage

Ready: integration exists and works, proposing to list it

Integration or project name

Wiro AI

Integration type

Model Provider

Published package or repo (if it exists)

No separate package: it uses OpenAIChatGenerator from https://pypi.org/project/haystack-ai/ with api_base_url="https://llm.wiro.ai/v1". API docs: https://wiro.ai/docs/completions-api

Need or proof of use
  • On 18 November we ran both snippets from the page in #746 as written, on haystack-ai 3.5.0 (still the latest) with Python 3.12. The generator returned a reply, and an Agent called a @tool function and answered with its result.
  • The model list needs no key, so anyone can see what is there: https://llm.wiro.ai/v1/models. Each entry has its context length, token prices and supported parameters, and today every model on it lists tool calling.
  • The generator snippet (it needs a Wiro AI API key):
from haystack.components.generators.chat import OpenAIChatGenerator
from haystack.dataclasses import ChatMessage
from haystack.utils import Secret

generator = OpenAIChatGenerator(
    api_key=Secret.from_env_var("WIRO_API_KEY"),
    api_base_url="https://llm.wiro.ai/v1",
    model="claude/sonnet-5",
)

messages = [ChatMessage.from_user("Explain retrieval-augmented generation in two sentences.")]
response = generator.run(messages=messages)
print(response["replies"][0].text)
Short description

Wiro AI serves LLMs from Anthropic, OpenAI, Google, DeepSeek, Qwen, xAI, Mistral, Moonshot and others through one OpenAI-compatible API. In Haystack, one OpenAIChatGenerator setup reaches all of them: a pipeline or an Agent switches models by changing the model string, with one API key and one bill. Usage is billed per token from a prepaid Wiro wallet.

The page from #746 (overview, setup, a generator example and an Agent example) is ready to open again once this is approved.

主要语言
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 摘要。