lm-deluge 0.0.30__tar.gz → 0.0.31__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.
Potentially problematic release.
This version of lm-deluge might be problematic. Click here for more details.
- {lm_deluge-0.0.30/src/lm_deluge.egg-info → lm_deluge-0.0.31}/PKG-INFO +1 -1
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/pyproject.toml +1 -1
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/bedrock.py +4 -1
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/file.py +4 -1
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/models.py +1 -1
- {lm_deluge-0.0.30 → lm_deluge-0.0.31/src/lm_deluge.egg-info}/PKG-INFO +1 -1
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/LICENSE +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/README.md +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/setup.cfg +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/__init__.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/agent.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/__init__.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/anthropic.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/base.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/common.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/deprecated/bedrock.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/deprecated/cohere.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/deprecated/deepseek.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/deprecated/mistral.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/deprecated/vertex.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/gemini.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/mistral.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/openai.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/api_requests/response.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/batches.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/built_in_tools/anthropic/__init__.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/built_in_tools/anthropic/bash.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/built_in_tools/anthropic/computer_use.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/built_in_tools/anthropic/editor.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/built_in_tools/base.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/built_in_tools/openai.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/cache.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/client.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/config.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/embed.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/errors.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/gemini_limits.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/image.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/llm_tools/__init__.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/llm_tools/classify.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/llm_tools/extract.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/llm_tools/locate.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/llm_tools/ocr.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/llm_tools/score.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/llm_tools/translate.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/prompt.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/request_context.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/rerank.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/tool.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/tracker.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/usage.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/util/json.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/util/logprobs.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/util/spatial.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/util/validation.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/util/xml.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge.egg-info/SOURCES.txt +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge.egg-info/dependency_links.txt +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge.egg-info/requires.txt +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge.egg-info/top_level.txt +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/tests/test_builtin_tools.py +0 -0
- {lm_deluge-0.0.30 → lm_deluge-0.0.31}/tests/test_native_mcp_server.py +0 -0
|
@@ -132,7 +132,7 @@ async def _build_anthropic_bedrock_request(
|
|
|
132
132
|
if len(mcp_servers) > 0:
|
|
133
133
|
request_json["mcp_servers"] = mcp_servers
|
|
134
134
|
|
|
135
|
-
return request_json, base_headers, auth, url
|
|
135
|
+
return request_json, base_headers, auth, url, region
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
class BedrockRequest(APIRequestBase):
|
|
@@ -140,6 +140,7 @@ class BedrockRequest(APIRequestBase):
|
|
|
140
140
|
super().__init__(context=context)
|
|
141
141
|
|
|
142
142
|
self.model = APIModel.from_registry(self.context.model_name)
|
|
143
|
+
self.region = None # Will be set during build_request
|
|
143
144
|
|
|
144
145
|
async def build_request(self):
|
|
145
146
|
self.url = f"{self.model.api_base}/messages"
|
|
@@ -153,6 +154,7 @@ class BedrockRequest(APIRequestBase):
|
|
|
153
154
|
base_headers,
|
|
154
155
|
self.auth,
|
|
155
156
|
self.url,
|
|
157
|
+
self.region,
|
|
156
158
|
) = await _build_anthropic_bedrock_request(self.model, self.context)
|
|
157
159
|
self.request_header = self.merge_headers(
|
|
158
160
|
base_headers, exclude_patterns=["anthropic", "openai", "gemini", "mistral"]
|
|
@@ -160,6 +162,7 @@ class BedrockRequest(APIRequestBase):
|
|
|
160
162
|
|
|
161
163
|
async def execute_once(self) -> APIResponse:
|
|
162
164
|
"""Override execute_once to handle AWS4Auth signing."""
|
|
165
|
+
await self.build_request()
|
|
163
166
|
import aiohttp
|
|
164
167
|
|
|
165
168
|
assert self.context.status_tracker
|
|
@@ -37,7 +37,10 @@ class File:
|
|
|
37
37
|
header, encoded = self.data.split(",", 1)
|
|
38
38
|
return base64.b64decode(encoded)
|
|
39
39
|
else:
|
|
40
|
-
|
|
40
|
+
err = f"unreadable file. self.data type: {type(self.data)}"
|
|
41
|
+
if isinstance(self.data, str) and len(self.data) < 1_000:
|
|
42
|
+
err += f". self.data: {len(self.data)}"
|
|
43
|
+
raise ValueError(err)
|
|
41
44
|
|
|
42
45
|
def _mime(self) -> str:
|
|
43
46
|
if self.media_type:
|
|
@@ -28,7 +28,7 @@ BUILTIN_MODELS = {
|
|
|
28
28
|
"reasoning_model": False,
|
|
29
29
|
},
|
|
30
30
|
"llama-4-maverick": {
|
|
31
|
-
"id": "llama-4-
|
|
31
|
+
"id": "llama-4-maverick",
|
|
32
32
|
"name": "Llama-4-Maverick-17B-128E-Instruct-FP8",
|
|
33
33
|
"api_base": "https://api.llama.com/compat/v1",
|
|
34
34
|
"api_key_env_var": "META_API_KEY",
|
|
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
|
{lm_deluge-0.0.30 → lm_deluge-0.0.31}/src/lm_deluge/built_in_tools/anthropic/computer_use.py
RENAMED
|
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
|