New Features ✨
Langchain
- Set
gen_ai.operation.nameandgen_ai.pipeline.nameon LLM spans by @ericapisani in #5849 - Broaden AI provider detection beyond OpenAI and Anthropic by @ericapisani in #5707
- Update LLM span operation to
gen_ai.generate_textby @ericapisani in #5796
Other
Bug Fixes 🐛
Openai
- Only wrap types with
_iteratorfor streamed responses by @alexander-alderman-webb in #5917 - Always set
gen_ai.response.streamingfor Responses by @alexander-alderman-webb in #5697 - Simplify Responses input handling by @alexander-alderman-webb in #5695
- Use
max_output_tokensfor Responses API by @alexander-alderman-webb in #5693 - Always set
gen_ai.response.streamingfor Completions by @alexander-alderman-webb in #5692 - Simplify Completions input handling by @alexander-alderman-webb in #5690
- Simplify embeddings input handling by @alexander-alderman-webb in #5688
Other
- (google-genai) Guard response extraction by @alexander-alderman-webb in #5869
- Add cycle detection to exceptions_from_error by @ericapisani in #5880
Internal Changes 🔧
Ai
- Remove unused GEN_AI_PIPELINE operation constant by @ericapisani in #5886
- Rename generate_text to text_completion by @ericapisani in #5885
Langchain
- Add text completion test by @alexander-alderman-webb in #5740
- Add tool execution test by @alexander-alderman-webb in #5739
- Add basic agent test with Responses call by @alexander-alderman-webb in #5726
- Replace mocks with
httpxtypes by @alexander-alderman-webb in #5724 - Consolidate span origin assertion by @alexander-alderman-webb in #5723
- Consolidate available tools assertion by @alexander-alderman-webb in #5721
Openai
- Replace mocks with httpx types for streaming Responses by @alexander-alderman-webb in #5882
- Replace mocks with httpx types for streaming Completions by @alexander-alderman-webb in #5879
- Move input handling code into API-specific functions by @alexander-alderman-webb in #5687
Other
- (asyncpg) Normalize query whitespace in integration by @ericapisani in #5855
- Exclude compromised litellm versions by @alexander-alderman-webb in #5876