[Integration]: Wiro AI

Abierto
#796 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 9 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
57/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
ai, documentation

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
114
Forks
332
Merge medio
5 d 1 h
PR fusionados (30 d)
13

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de deepset-ai/haystack-integrations

Todos los issues de deepset-ai/haystack-integrations

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.