This repository was archived by the owner on Jun 8, 2026. It is now read-only.
Add AnyAPI as new Generator option#471
Open
es697 wants to merge 1 commit into
Open
Conversation
AnyAPI is a unified AI platform that provides access to hundreds of AI models (OpenAI, Anthropic, Google, Meta, DeepSeek, and more) through a single OpenAI-compatible API endpoint. - New file: goldenverba/components/generation/AnyAPIGenerator.py - OpenAI-compatible streaming chat completions via aiohttp - Reads API key from ANYAPI_API_KEY env var or in-UI config - Optional ANYAPI_BASE_URL (defaults to https://api.anyapi.ai/v1) - Auto-fetches model list from GET /v1/models when API key present - Falls back to curated default list when no key configured - Register AnyAPIGenerator() in both dev and production generator lists - Add ANYAPI env vars to .env.example
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Infrastructure as Code | View in Orca | ||
| SAST | View in Orca | ||
| Secrets | View in Orca | ||
| Vulnerabilities | View in Orca |
|
To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge. |
Author
|
I have read and I agree to the terms of the Weaviate Contributor License Agreement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds AnyAPI as a new LLM Generator option in Verba. AnyAPI is a unified AI platform that provides access to 400+ models from OpenAI, Anthropic, Google, Meta, DeepSeek and more through a single OpenAI-compatible API endpoint.
Changes
goldenverba/components/generation/AnyAPIGenerator.py— OpenAI-compatible streaming chat completions via aiohttpANYAPI_API_KEYenv var or in-UI configANYAPI_BASE_URL(defaults tohttps://api.anyapi.ai/v1)ANYAPI_MODEL(defaults to first model from auto-fetched list)GET /v1/modelswhen API key is present; falls back to curated default list when no key is configuredAnyAPIGenerator()in both dev and production generator lists ingoldenverba/components/managers.py.env.exampleHow to use
ANYAPI_API_KEYenv var, or paste it into the Verba UI's API Key field after selecting AnyAPI in the Generator dropdownopenai/gpt-5.1,anthropic/claude-opus-4-7,deepseek/deepseek-v3-2,google/gemini-3-pro-preview,meta/llama-4-maverick)Docs: https://docs.anyapi.ai · Models: https://anyapi.ai/ai-models
I have read and I agree to the terms of the Weaviate Contributor License Agreement.