mycode-sdk 0.5.6__tar.gz → 0.5.8__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.
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/PKG-INFO +1 -1
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/pyproject.toml +1 -1
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/models_catalog.json +15 -1
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/providers/openai_chat.py +16 -4
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/.gitignore +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/LICENSE +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/README.md +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/__init__.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/agent.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/messages.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/models.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/providers/__init__.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/providers/anthropic_like.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/providers/base.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/providers/gemini.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/providers/openai_responses.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/py.typed +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/session.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/tools.py +0 -0
- {mycode_sdk-0.5.6 → mycode_sdk-0.5.8}/src/mycode/utils.py +0 -0
|
@@ -176,6 +176,13 @@
|
|
|
176
176
|
"supports_image_input": false,
|
|
177
177
|
"supports_pdf_input": false,
|
|
178
178
|
"supports_reasoning": true
|
|
179
|
+
},
|
|
180
|
+
"deepseek-v4-pro": {
|
|
181
|
+
"context_window": 1000000,
|
|
182
|
+
"max_output_tokens": 384000,
|
|
183
|
+
"supports_image_input": false,
|
|
184
|
+
"supports_pdf_input": false,
|
|
185
|
+
"supports_reasoning": true
|
|
179
186
|
}
|
|
180
187
|
},
|
|
181
188
|
"google": {
|
|
@@ -424,7 +431,7 @@
|
|
|
424
431
|
"supports_pdf_input": false,
|
|
425
432
|
"supports_reasoning": false
|
|
426
433
|
},
|
|
427
|
-
"gemma-4-26b-it": {
|
|
434
|
+
"gemma-4-26b-a4b-it": {
|
|
428
435
|
"context_window": 256000,
|
|
429
436
|
"max_output_tokens": 8192,
|
|
430
437
|
"supports_image_input": true,
|
|
@@ -773,6 +780,13 @@
|
|
|
773
780
|
"supports_pdf_input": false,
|
|
774
781
|
"supports_reasoning": true
|
|
775
782
|
},
|
|
783
|
+
"gpt-5.5": {
|
|
784
|
+
"context_window": 1050000,
|
|
785
|
+
"max_output_tokens": 130000,
|
|
786
|
+
"supports_image_input": true,
|
|
787
|
+
"supports_pdf_input": true,
|
|
788
|
+
"supports_reasoning": true
|
|
789
|
+
},
|
|
776
790
|
"gpt-image-1": {
|
|
777
791
|
"context_window": 0,
|
|
778
792
|
"max_output_tokens": 0,
|
|
@@ -319,17 +319,29 @@ class OpenAIChatAdapter(ProviderAdapter):
|
|
|
319
319
|
class DeepSeekAdapter(OpenAIChatAdapter):
|
|
320
320
|
"""DeepSeek's OpenAI-compatible chat endpoint.
|
|
321
321
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
322
|
+
V4 supports both non-thinking and thinking modes. The shared "none" effort
|
|
323
|
+
disables thinking; other explicit efforts enable thinking and map to
|
|
324
|
+
DeepSeek's high/max effort levels.
|
|
325
325
|
"""
|
|
326
326
|
|
|
327
327
|
provider_id = "deepseek"
|
|
328
328
|
label = "DeepSeek"
|
|
329
329
|
default_base_url = "https://api.deepseek.com"
|
|
330
330
|
env_api_key_names = ("DEEPSEEK_API_KEY",)
|
|
331
|
-
default_models = ("deepseek-
|
|
331
|
+
default_models = ("deepseek-v4-pro", "deepseek-v4-flash")
|
|
332
332
|
auto_discoverable = True
|
|
333
|
+
supports_reasoning_effort = True
|
|
334
|
+
|
|
335
|
+
def _build_provider_payload_overrides(self, request: ProviderRequest) -> dict[str, Any]:
|
|
336
|
+
if request.reasoning_effort == "none":
|
|
337
|
+
return {"extra_body": {"thinking": {"type": "disabled"}}}
|
|
338
|
+
if request.reasoning_effort in {"low", "medium", "high", "xhigh"}:
|
|
339
|
+
effort = "max" if request.reasoning_effort == "xhigh" else "high"
|
|
340
|
+
return {
|
|
341
|
+
"reasoning_effort": effort,
|
|
342
|
+
"extra_body": {"thinking": {"type": "enabled"}},
|
|
343
|
+
}
|
|
344
|
+
return {}
|
|
333
345
|
|
|
334
346
|
|
|
335
347
|
class ZAIAdapter(OpenAIChatAdapter):
|
|
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
|