Skip to content

Commit 92e1cd7

Browse files
authored
Update deps (#1406)
1 parent cbe4ccb commit 92e1cd7

File tree

3 files changed

+288
-312
lines changed

3 files changed

+288
-312
lines changed

logfire/_internal/exporters/processor_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def _transform_langchain_span(span: ReadableSpanDict):
380380
guessed_system = guess_system(request_model)
381381
actual_system = attributes.get('gen_ai.system')
382382
if guessed_system:
383-
if actual_system in (None, 'langchain'): # pragma: no branch
383+
if actual_system in (None, 'langchain'): # pragma: no cover
384384
new_attributes['gen_ai.system'] = guessed_system
385385
elif actual_system == 'langchain':
386386
# Remove gen_ai.system=langchain as this also interferes with costs in the UI.

tests/otel_integrations/test_pydantic_ai_mcp.py

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,7 @@ async def client_streams(self):
182182
'gen_ai.request.model': 'gpt-4o',
183183
'server.address': 'api.openai.com',
184184
'model_request_parameters': {
185-
'function_tools': [
186-
{
187-
'name': 'joker',
188-
'parameters_json_schema': IsPartialDict(),
189-
'description': 'Poem generator',
190-
'outer_typed_dict_key': None,
191-
'strict': True,
192-
'sequential': False,
193-
'kind': 'function',
194-
}
195-
],
185+
'function_tools': [IsPartialDict()],
196186
'builtin_tools': [],
197187
'output_mode': 'text',
198188
'output_object': None,
@@ -665,22 +655,7 @@ async def client_streams(self):
665655
'gen_ai.request.model': 'gpt-4o',
666656
'server.address': 'api.openai.com',
667657
'model_request_parameters': {
668-
'function_tools': [
669-
{
670-
'name': 'joker',
671-
'parameters_json_schema': {
672-
'properties': {'theme': {'type': 'string'}},
673-
'required': ['theme'],
674-
'type': 'object',
675-
'additionalProperties': False,
676-
},
677-
'description': 'Poem generator',
678-
'outer_typed_dict_key': None,
679-
'strict': True,
680-
'sequential': False,
681-
'kind': 'function',
682-
}
683-
],
658+
'function_tools': [IsPartialDict()],
684659
'builtin_tools': [],
685660
'output_mode': 'text',
686661
'output_object': None,

0 commit comments

Comments
 (0)