mycode-sdk 0.5.7__tar.gz → 0.6.0__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.7 → mycode_sdk-0.6.0}/PKG-INFO +1 -1
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/pyproject.toml +1 -1
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/models_catalog.json +22 -1
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/providers/openai_chat.py +16 -4
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/.gitignore +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/LICENSE +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/README.md +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/__init__.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/agent.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/messages.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/models.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/providers/__init__.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/providers/anthropic_like.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/providers/base.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/providers/gemini.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/providers/openai_responses.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/py.typed +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/session.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/tools.py +0 -0
- {mycode_sdk-0.5.7 → mycode_sdk-0.6.0}/src/mycode/utils.py +0 -0
|
@@ -176,6 +176,20 @@
|
|
|
176
176
|
"supports_image_input": false,
|
|
177
177
|
"supports_pdf_input": false,
|
|
178
178
|
"supports_reasoning": true
|
|
179
|
+
},
|
|
180
|
+
"deepseek-v4-flash": {
|
|
181
|
+
"context_window": 1000000,
|
|
182
|
+
"max_output_tokens": 384000,
|
|
183
|
+
"supports_image_input": false,
|
|
184
|
+
"supports_pdf_input": false,
|
|
185
|
+
"supports_reasoning": true
|
|
186
|
+
},
|
|
187
|
+
"deepseek-v4-pro": {
|
|
188
|
+
"context_window": 1000000,
|
|
189
|
+
"max_output_tokens": 384000,
|
|
190
|
+
"supports_image_input": false,
|
|
191
|
+
"supports_pdf_input": false,
|
|
192
|
+
"supports_reasoning": true
|
|
179
193
|
}
|
|
180
194
|
},
|
|
181
195
|
"google": {
|
|
@@ -424,7 +438,7 @@
|
|
|
424
438
|
"supports_pdf_input": false,
|
|
425
439
|
"supports_reasoning": false
|
|
426
440
|
},
|
|
427
|
-
"gemma-4-26b-it": {
|
|
441
|
+
"gemma-4-26b-a4b-it": {
|
|
428
442
|
"context_window": 256000,
|
|
429
443
|
"max_output_tokens": 8192,
|
|
430
444
|
"supports_image_input": true,
|
|
@@ -773,6 +787,13 @@
|
|
|
773
787
|
"supports_pdf_input": false,
|
|
774
788
|
"supports_reasoning": true
|
|
775
789
|
},
|
|
790
|
+
"gpt-5.5": {
|
|
791
|
+
"context_window": 1050000,
|
|
792
|
+
"max_output_tokens": 130000,
|
|
793
|
+
"supports_image_input": true,
|
|
794
|
+
"supports_pdf_input": true,
|
|
795
|
+
"supports_reasoning": true
|
|
796
|
+
},
|
|
776
797
|
"gpt-image-1": {
|
|
777
798
|
"context_window": 0,
|
|
778
799
|
"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
|