Skip to content

Commit

Permalink
Bump dependencies (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Dec 18, 2024
1 parent 93db21e commit 728bf88
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 30 deletions.
18 changes: 14 additions & 4 deletions tests/otel_integrations/test_anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@ def test_sync_messages(instrumented_client: anthropic.Anthropic, exporter: TestE
'content': 'Nine',
'role': 'assistant',
},
'usage': {'input_tokens': 2, 'output_tokens': 3},
'usage': {
'input_tokens': 2,
'output_tokens': 3,
'cache_creation_input_tokens': None,
'cache_read_input_tokens': None,
},
}
),
'logfire.json_schema': IsJson(
Expand Down Expand Up @@ -236,7 +241,12 @@ async def test_async_messages(instrumented_async_client: anthropic.AsyncAnthropi
'content': 'Nine',
'role': 'assistant',
},
'usage': {'input_tokens': 2, 'output_tokens': 3},
'usage': {
'input_tokens': 2,
'output_tokens': 3,
'cache_creation_input_tokens': None,
'cache_read_input_tokens': None,
},
}
),
'logfire.json_schema': IsJson(
Expand All @@ -256,7 +266,7 @@ async def test_async_messages(instrumented_async_client: anthropic.AsyncAnthropi
},
},
},
}
},
),
},
}
Expand Down Expand Up @@ -475,7 +485,7 @@ def test_tool_messages(instrumented_client: anthropic.Anthropic, exporter: TestE
'logfire.msg': "Message with 'claude-3-haiku-20240307'",
'logfire.span_type': 'span',
'logfire.tags': ('LLM',),
'response_data': '{"message":{"role":"assistant","tool_calls":[{"function":{"arguments":"{\\"input\\":{\\"param\\":\\"param\\"}}","name":"tool"}}]},"usage":{"input_tokens":2,"output_tokens":3}}',
'response_data': '{"message":{"role":"assistant","tool_calls":[{"function":{"arguments":"{\\"input\\":{\\"param\\":\\"param\\"}}","name":"tool"}}]},"usage":{"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"input_tokens":2,"output_tokens":3}}',
'logfire.json_schema': '{"type":"object","properties":{"request_data":{"type":"object"},"async":{},"response_data":{"type":"object","properties":{"usage":{"type":"object","title":"Usage","x-python-datatype":"PydanticModel"}}}}}',
},
}
Expand Down
52 changes: 26 additions & 26 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 728bf88

Please sign in to comment.