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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mycode-sdk
3
- Version: 0.5.7
3
+ Version: 0.6.0
4
4
  Summary: Lightweight Python SDK for building AI agents.
5
5
  Project-URL: Homepage, https://github.com/legibet/mycode
6
6
  Project-URL: Repository, https://github.com/legibet/mycode
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mycode-sdk"
7
- version = "0.5.7"
7
+ version = "0.6.0"
8
8
  description = "Lightweight Python SDK for building AI agents."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -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
- deepseek-reasoner always thinks no parameter needed to enable it.
323
- deepseek-chat does not think by default; send thinking: {"type": "enabled"}
324
- to activate it. We rely on the model's default behavior, so no overrides here.
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-chat", "deepseek-reasoner")
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