Bump version to 0.1.2; update logging paths and enhance CLI with version command

This commit is contained in:
2026-06-27 14:32:52 +08:00
parent 2fc815b788
commit ac79dd0618
13 changed files with 161 additions and 33 deletions

View File

@@ -28,6 +28,22 @@ def test_text_request_translation() -> None:
assert request["inferenceConfig"]["temperature"] == 0.2
def test_stop_sequences_are_translated_into_inference_config() -> None:
payload = AnthropicMessagesRequest.model_validate(
{
"model": "claude-opus-4.6",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 100,
"stop_sequences": ["STOP"],
}
)
request = anthropic_to_bedrock_request(payload)
assert request["inferenceConfig"]["stopSequences"] == ["STOP"]
assert "stopSequences" not in request
def test_image_request_translation() -> None:
image_data = base64.b64encode(b"image-bytes").decode("ascii")
payload = AnthropicMessagesRequest.model_validate(