OneLLM 0.1.3__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {onellm-0.1.3 → onellm-0.1.4/OneLLM.egg-info}/PKG-INFO +6 -5
- {onellm-0.1.3 → onellm-0.1.4}/OneLLM.egg-info/SOURCES.txt +1 -0
- {onellm-0.1.3/OneLLM.egg-info → onellm-0.1.4}/PKG-INFO +6 -5
- {onellm-0.1.3 → onellm-0.1.4}/README.md +5 -4
- onellm-0.1.4/onellm/.version +1 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/__init__.py +2 -0
- onellm-0.1.4/onellm/providers/vercel.py +58 -0
- onellm-0.1.3/onellm/.version +0 -1
- {onellm-0.1.3 → onellm-0.1.4}/LICENSE +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/MANIFEST.in +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/OneLLM.egg-info/dependency_links.txt +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/OneLLM.egg-info/top_level.txt +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/__init__.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/audio.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/chat_completion.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/cli/__init__.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/cli/download_model.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/client.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/completion.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/config.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/embedding.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/errors.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/files.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/image.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/models.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/anthropic.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/anyscale.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/azure.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/base.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/bedrock.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/cohere.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/deepseek.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/fallback.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/fireworks.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/glm.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/google.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/groq.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/llama_cpp.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/mistral.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/moonshot.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/ollama.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/openai.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/openai_compatible.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/openrouter.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/perplexity.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/together.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/vertexai.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/providers/xai.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/speech.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/types/__init__.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/types/common.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/utils/__init__.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/utils/fallback.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/utils/retry.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/utils/streaming.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/utils/text_cleaner.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/utils/token_counter.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/onellm/validators.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/pyproject.toml +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/setup.cfg +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/setup.py +0 -0
- {onellm-0.1.3 → onellm-0.1.4}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onellm
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: A unified interface for interacting with large language models from various providers - a complete drop-in replacement for OpenAI's client
|
|
5
5
|
Home-page: https://github.com/muxi-ai/onellm
|
|
6
6
|
Author: Ran Aroussi
|
|
@@ -103,10 +103,10 @@ Dynamic: requires-python
|
|
|
103
103
|
|
|
104
104
|
The library follows the OpenAI client API design pattern, making it familiar to developers already using OpenAI and enabling easy migration for existing applications. **Simply change your import statements and instantly gain access to hundreds of models** across dozens of providers while maintaining your existing code structure.
|
|
105
105
|
|
|
106
|
-
With support for
|
|
106
|
+
With support for 21 implemented providers (and more planned), OneLLM gives you access to approximately 300+ unique language models through a single, consistent interface - from the latest proprietary models to open-source alternatives, all accessible through familiar OpenAI-compatible patterns.
|
|
107
107
|
|
|
108
108
|
> [!NOTE]
|
|
109
|
-
> **Ready for Use**: OneLLM now supports
|
|
109
|
+
> **Ready for Use**: OneLLM now supports 21 providers with 300+ models! From cloud APIs to local models, you can access them all through a single, unified interface. [Contributions are welcome](./CONTRIBUTING.md) to help add even more providers!
|
|
110
110
|
|
|
111
111
|
---
|
|
112
112
|
|
|
@@ -178,9 +178,9 @@ For more detailed examples, check out the [examples directory](./examples).
|
|
|
178
178
|
|
|
179
179
|
## 🌐 Supported Providers
|
|
180
180
|
|
|
181
|
-
OneLLM currently supports **
|
|
181
|
+
OneLLM currently supports **21 providers** with more on the way:
|
|
182
182
|
|
|
183
|
-
### Cloud API Providers (
|
|
183
|
+
### Cloud API Providers (19)
|
|
184
184
|
- **Anthropic** - Claude family of models
|
|
185
185
|
- **Anyscale** - Configurable AI platform
|
|
186
186
|
- **AWS Bedrock** - Access to multiple model families
|
|
@@ -197,6 +197,7 @@ OneLLM currently supports **20 providers** with more on the way:
|
|
|
197
197
|
- **OpenRouter** - Gateway to 100+ models
|
|
198
198
|
- **Perplexity** - Search-augmented models
|
|
199
199
|
- **Together AI** - Open-source model hosting
|
|
200
|
+
- **Vercel AI Gateway** - Gateway to 100+ models from multiple providers
|
|
200
201
|
- **Vertex AI** - Google Cloud's enterprise Gemini
|
|
201
202
|
- **X.AI** - Grok models
|
|
202
203
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onellm
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: A unified interface for interacting with large language models from various providers - a complete drop-in replacement for OpenAI's client
|
|
5
5
|
Home-page: https://github.com/muxi-ai/onellm
|
|
6
6
|
Author: Ran Aroussi
|
|
@@ -103,10 +103,10 @@ Dynamic: requires-python
|
|
|
103
103
|
|
|
104
104
|
The library follows the OpenAI client API design pattern, making it familiar to developers already using OpenAI and enabling easy migration for existing applications. **Simply change your import statements and instantly gain access to hundreds of models** across dozens of providers while maintaining your existing code structure.
|
|
105
105
|
|
|
106
|
-
With support for
|
|
106
|
+
With support for 21 implemented providers (and more planned), OneLLM gives you access to approximately 300+ unique language models through a single, consistent interface - from the latest proprietary models to open-source alternatives, all accessible through familiar OpenAI-compatible patterns.
|
|
107
107
|
|
|
108
108
|
> [!NOTE]
|
|
109
|
-
> **Ready for Use**: OneLLM now supports
|
|
109
|
+
> **Ready for Use**: OneLLM now supports 21 providers with 300+ models! From cloud APIs to local models, you can access them all through a single, unified interface. [Contributions are welcome](./CONTRIBUTING.md) to help add even more providers!
|
|
110
110
|
|
|
111
111
|
---
|
|
112
112
|
|
|
@@ -178,9 +178,9 @@ For more detailed examples, check out the [examples directory](./examples).
|
|
|
178
178
|
|
|
179
179
|
## 🌐 Supported Providers
|
|
180
180
|
|
|
181
|
-
OneLLM currently supports **
|
|
181
|
+
OneLLM currently supports **21 providers** with more on the way:
|
|
182
182
|
|
|
183
|
-
### Cloud API Providers (
|
|
183
|
+
### Cloud API Providers (19)
|
|
184
184
|
- **Anthropic** - Claude family of models
|
|
185
185
|
- **Anyscale** - Configurable AI platform
|
|
186
186
|
- **AWS Bedrock** - Access to multiple model families
|
|
@@ -197,6 +197,7 @@ OneLLM currently supports **20 providers** with more on the way:
|
|
|
197
197
|
- **OpenRouter** - Gateway to 100+ models
|
|
198
198
|
- **Perplexity** - Search-augmented models
|
|
199
199
|
- **Together AI** - Open-source model hosting
|
|
200
|
+
- **Vercel AI Gateway** - Gateway to 100+ models from multiple providers
|
|
200
201
|
- **Vertex AI** - Google Cloud's enterprise Gemini
|
|
201
202
|
- **X.AI** - Grok models
|
|
202
203
|
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
|
|
48
48
|
The library follows the OpenAI client API design pattern, making it familiar to developers already using OpenAI and enabling easy migration for existing applications. **Simply change your import statements and instantly gain access to hundreds of models** across dozens of providers while maintaining your existing code structure.
|
|
49
49
|
|
|
50
|
-
With support for
|
|
50
|
+
With support for 21 implemented providers (and more planned), OneLLM gives you access to approximately 300+ unique language models through a single, consistent interface - from the latest proprietary models to open-source alternatives, all accessible through familiar OpenAI-compatible patterns.
|
|
51
51
|
|
|
52
52
|
> [!NOTE]
|
|
53
|
-
> **Ready for Use**: OneLLM now supports
|
|
53
|
+
> **Ready for Use**: OneLLM now supports 21 providers with 300+ models! From cloud APIs to local models, you can access them all through a single, unified interface. [Contributions are welcome](./CONTRIBUTING.md) to help add even more providers!
|
|
54
54
|
|
|
55
55
|
---
|
|
56
56
|
|
|
@@ -122,9 +122,9 @@ For more detailed examples, check out the [examples directory](./examples).
|
|
|
122
122
|
|
|
123
123
|
## 🌐 Supported Providers
|
|
124
124
|
|
|
125
|
-
OneLLM currently supports **
|
|
125
|
+
OneLLM currently supports **21 providers** with more on the way:
|
|
126
126
|
|
|
127
|
-
### Cloud API Providers (
|
|
127
|
+
### Cloud API Providers (19)
|
|
128
128
|
- **Anthropic** - Claude family of models
|
|
129
129
|
- **Anyscale** - Configurable AI platform
|
|
130
130
|
- **AWS Bedrock** - Access to multiple model families
|
|
@@ -141,6 +141,7 @@ OneLLM currently supports **20 providers** with more on the way:
|
|
|
141
141
|
- **OpenRouter** - Gateway to 100+ models
|
|
142
142
|
- **Perplexity** - Search-augmented models
|
|
143
143
|
- **Together AI** - Open-source model hosting
|
|
144
|
+
- **Vercel AI Gateway** - Gateway to 100+ models from multiple providers
|
|
144
145
|
- **Vertex AI** - Google Cloud's enterprise Gemini
|
|
145
146
|
- **X.AI** - Grok models
|
|
146
147
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.4
|
|
@@ -41,6 +41,7 @@ from .groq import GroqProvider
|
|
|
41
41
|
from .glm import GLMProvider
|
|
42
42
|
from .xai import XAIProvider
|
|
43
43
|
from .openrouter import OpenRouterProvider
|
|
44
|
+
from .vercel import VercelProvider
|
|
44
45
|
from .together import TogetherProvider
|
|
45
46
|
from .fireworks import FireworksProvider
|
|
46
47
|
from .perplexity import PerplexityProvider
|
|
@@ -74,6 +75,7 @@ register_provider("groq", GroqProvider)
|
|
|
74
75
|
register_provider("glm", GLMProvider)
|
|
75
76
|
register_provider("xai", XAIProvider)
|
|
76
77
|
register_provider("openrouter", OpenRouterProvider)
|
|
78
|
+
register_provider("vercel", VercelProvider)
|
|
77
79
|
register_provider("together", TogetherProvider)
|
|
78
80
|
register_provider("fireworks", FireworksProvider)
|
|
79
81
|
register_provider("perplexity", PerplexityProvider)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
#
|
|
3
|
+
# Unified interface for LLM providers using OpenAI format
|
|
4
|
+
# https://github.com/muxi-ai/onellm
|
|
5
|
+
#
|
|
6
|
+
# Copyright (C) 2025 Ran Aroussi
|
|
7
|
+
#
|
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
# you may not use this file except in compliance with the License.
|
|
10
|
+
# You may obtain a copy of the License at
|
|
11
|
+
#
|
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
#
|
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
# See the License for the specific language governing permissions and
|
|
18
|
+
# limitations under the License.
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
Vercel AI Gateway provider implementation for OneLLM.
|
|
22
|
+
|
|
23
|
+
Vercel AI Gateway provides a unified OpenAI-compatible interface to 100+ language models
|
|
24
|
+
from various providers including OpenAI, Anthropic, Google, Meta, xAI, Mistral, DeepSeek,
|
|
25
|
+
Amazon Bedrock, Cohere, Perplexity, and Alibaba.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
from .base import register_provider
|
|
29
|
+
from .openai_compatible import OpenAICompatibleProvider
|
|
30
|
+
|
|
31
|
+
class VercelProvider(OpenAICompatibleProvider):
|
|
32
|
+
"""Vercel AI Gateway provider implementation."""
|
|
33
|
+
|
|
34
|
+
# Provider configuration
|
|
35
|
+
provider_name = "vercel"
|
|
36
|
+
default_api_base = "https://ai-gateway.vercel.sh/v1"
|
|
37
|
+
requires_special_headers = False
|
|
38
|
+
|
|
39
|
+
# Set capability flags (varies by model)
|
|
40
|
+
json_mode_support = True
|
|
41
|
+
|
|
42
|
+
# Multi-modal capabilities (model-dependent)
|
|
43
|
+
vision_support = True # Many models support vision
|
|
44
|
+
audio_input_support = False # No direct audio support
|
|
45
|
+
video_input_support = False # No video support
|
|
46
|
+
|
|
47
|
+
# Streaming capabilities
|
|
48
|
+
streaming_support = True # All models support streaming
|
|
49
|
+
token_by_token_support = True # Provides token-by-token streaming
|
|
50
|
+
|
|
51
|
+
# Realtime capabilities
|
|
52
|
+
realtime_support = False # No realtime API
|
|
53
|
+
|
|
54
|
+
# Additional capabilities
|
|
55
|
+
function_calling_support = True # Many models support function calling
|
|
56
|
+
|
|
57
|
+
# Register the Vercel provider
|
|
58
|
+
register_provider("vercel", VercelProvider)
|
onellm-0.1.3/onellm/.version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|