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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mycode-sdk
3
- Version: 0.5.6
3
+ Version: 0.5.8
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.6"
7
+ version = "0.5.8"
8
8
  description = "Lightweight Python SDK for building AI agents."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -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
- 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