File tree Expand file tree Collapse file tree 3 files changed +288
-312
lines changed
logfire/_internal/exporters Expand file tree Collapse file tree 3 files changed +288
-312
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ def _transform_langchain_span(span: ReadableSpanDict):
380
380
guessed_system = guess_system (request_model )
381
381
actual_system = attributes .get ('gen_ai.system' )
382
382
if guessed_system :
383
- if actual_system in (None , 'langchain' ): # pragma: no branch
383
+ if actual_system in (None , 'langchain' ): # pragma: no cover
384
384
new_attributes ['gen_ai.system' ] = guessed_system
385
385
elif actual_system == 'langchain' :
386
386
# Remove gen_ai.system=langchain as this also interferes with costs in the UI.
Original file line number Diff line number Diff line change @@ -182,17 +182,7 @@ async def client_streams(self):
182
182
'gen_ai.request.model' : 'gpt-4o' ,
183
183
'server.address' : 'api.openai.com' ,
184
184
'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 ()],
196
186
'builtin_tools' : [],
197
187
'output_mode' : 'text' ,
198
188
'output_object' : None ,
@@ -665,22 +655,7 @@ async def client_streams(self):
665
655
'gen_ai.request.model' : 'gpt-4o' ,
666
656
'server.address' : 'api.openai.com' ,
667
657
'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 ()],
684
659
'builtin_tools' : [],
685
660
'output_mode' : 'text' ,
686
661
'output_object' : None ,
You can’t perform that action at this time.
0 commit comments