local-openai2anthropic 0.3.2__tar.gz → 0.3.3__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.
Files changed (33) hide show
  1. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/PKG-INFO +1 -1
  2. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/pyproject.toml +1 -1
  3. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/router.py +1 -1
  4. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/.github/workflows/publish.yml +0 -0
  5. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/.gitignore +0 -0
  6. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/LICENSE +0 -0
  7. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/README.md +0 -0
  8. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/README_zh.md +0 -0
  9. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/examples/basic_chat.py +0 -0
  10. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/examples/streaming.py +0 -0
  11. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/examples/thinking_mode.py +0 -0
  12. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/examples/tool_calling.py +0 -0
  13. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/examples/vision.py +0 -0
  14. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/examples/web_search.py +0 -0
  15. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/__init__.py +0 -0
  16. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/__main__.py +0 -0
  17. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/config.py +0 -0
  18. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/converter.py +0 -0
  19. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/daemon.py +0 -0
  20. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/daemon_runner.py +0 -0
  21. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/main.py +0 -0
  22. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/openai_types.py +0 -0
  23. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/protocol.py +0 -0
  24. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/server_tools/__init__.py +0 -0
  25. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/server_tools/base.py +0 -0
  26. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/server_tools/web_search.py +0 -0
  27. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/src/local_openai2anthropic/tavily_client.py +0 -0
  28. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/tests/__init__.py +0 -0
  29. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/tests/test_converter.py +0 -0
  30. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/tests/test_integration.py +0 -0
  31. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/tests/test_router.py +0 -0
  32. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/tests/test_upstream.sh +0 -0
  33. {local_openai2anthropic-0.3.2 → local_openai2anthropic-0.3.3}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: local-openai2anthropic
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: A lightweight proxy server that converts Anthropic Messages API to OpenAI API
5
5
  Project-URL: Homepage, https://github.com/dongfangzan/local-openai2anthropic
6
6
  Project-URL: Repository, https://github.com/dongfangzan/local-openai2anthropic
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "local-openai2anthropic"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  description = "A lightweight proxy server that converts Anthropic Messages API to OpenAI API"
5
5
  readme = "README.md"
6
6
  license = { text = "Apache-2.0" }
@@ -415,7 +415,7 @@ async def _stream_response(
415
415
  tool_call_buffers[tool_call_idx] = (
416
416
  tool_call_buffers.get(tool_call_idx, "") + args
417
417
  )
418
- yield f"event: content_block_delta\ndata: {json.dumps({'type': 'content_block_delta', 'index': content_block_index, 'delta': {'type': 'input_json_delta', 'partial_json': tool_call_buffers[tool_call_idx]}})}\n\n"
418
+ yield f"event: content_block_delta\ndata: {json.dumps({'type': 'content_block_delta', 'index': content_block_index, 'delta': {'type': 'input_json_delta', 'partial_json': args}})}\n\n"
419
419
 
420
420
  # Close final content block
421
421
  if content_block_started: