llama-index-llms-linkrra
LlamaIndex LLM integration for Linkrra Synap — an OpenAI-compatible inference API for open models (Qwen, gpt-oss, Gemma, GLM, DeepSeek and more), billed per token.
Not to be confused with other products named "Synap". This package talks to
https://synap402.com/v1, operated by Linkrra.
Install
pip install llama-index-llms-linkrra
export LINKRRA_API_KEY="your-api-key" # get one at https://synap402.com
Use
from llama_index.llms.linkrra import Linkrra
from llama_index.core.llms import ChatMessage
llm = Linkrra(model="qwen3-coder-30b")
print(llm.complete("Write a haiku about open models."))
print(llm.chat([ChatMessage(role="user", content="Say hello.")]))
for chunk in llm.stream_complete("Count from 1 to 5."):
print(chunk.delta, end="")
model="synap-v1" (the default) lets Synap pick the cheapest model that can do
the job. The live list of model ids, context lengths and per-token prices is at
https://synap402.com/v1/models. Set context_window= to match the model you
use (default: a conservative 32768).
Use it as the default LLM:
from llama_index.core import Settings
Settings.llm = Linkrra(model="qwen3-coder-30b")
Configuration
| Argument | Env var | Default |
|---|---|---|
api_key |
LINKRRA_API_KEY |
— (required) |
api_base |
LINKRRA_API_BASE |
https://synap402.com/v1 |
model |
— | synap-v1 |
Tests
pip install -e ".[test]"
pytest tests # offline; the live test runs only if LINKRRA_API_KEY is set
License
Apache-2.0
Metadata
Release files for llama-index-llms-linkrra 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_llms_linkrra-0.1.0.tar.gz | 7.3 kB | Without provenance | Details for llama_index_llms_linkrra-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_llms_linkrra-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_llms_linkrra-0.1.0-py3-none-any.whl |
Total release size: 15.1 kB
Release files / llama_index_llms_linkrra-0.1.0.tar.gz
| Download URL | llama_index_llms_linkrra-0.1.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
086fb51890b7e73ed09f20101b34f9ca05a46b8b1d0d0e5434dc496c7b9df6d5
|
|
BLAKE2b-256 checksum How to use checksums |
98b406c378f791d9af00da3901bb6c5b9487e09c2b8a4cafd843727f3d35bf03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / llama_index_llms_linkrra-0.1.0-py3-none-any.whl
| Download URL | llama_index_llms_linkrra-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dcb137de9f20551cc271a366748ea42056bbc39f921dc851d2ad90b0c28f924
|
|
BLAKE2b-256 checksum How to use checksums |
0fafafa586f9bfffc08ba073056f09fd2c71b77175574705dc1b41cbd51a75fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for llama-index-llms-linkrra 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.