-
[OPIK-1875]: [P SDK] ADK integration bug with get_fast_api with Server-Sent Events (SSE) (#2465)
发布于
2025-06-13 15:28:34 +00:00 -
[OPIK-1875]: Added guard for empty user content.
-
[OPIK-1875]: Removed debug output
-
[OPIK-1875]: Add guard to handle empty content and improve error logging in ADK integrations
Introduced
has_empty_text_part_contenthelper to filter out empty response parts for gemini-2.5-flash-preview in streaming mode. Enhanced error logging with exception details inopik_tracer. Updated metadata handling in usage data extraction to address streaming mode inconsistencies. Improved maintainability with refactored logic.-
[OPIK-1875]: Added debug print
-
[OPIK-1875]: Fix metadata extraction inconsistency and add SSL certificate handling in tests
Refactored metadata extraction in
llm_response_wrapperto handle cases whereusage_metadatamay be missing in streaming mode. Updated ADK E2E library tests to include SSL certificate environment setup for OpenAI agent tests.- [OPIK-1875]: Add sample agent SSE and extend token usage tracking with
thoughts_tokens
Added "Sample Agent SSE" for testing ADK integrations and introduced
thoughts_tokensto track reasoning token usage in Gemini models. Updated associated data models and tests to include the new token type while expanding E2E test coverage.- [OPIK-1875]: Update model and test references from gemini-2.5-flash to gemini-2.0-flash because we don't have it enabled.
Replaced
gemini-2.5-flashwithgemini-2.0-flashin sample agent and associated E2E test cases. Adjusted expected usage keys to align with the updated model.-
[OPIK-1875]: Enabled
globalGOOGLE_CLOUD_LOCATION to check if it's possible to use gemini-2.5 -
[OPIK-1875]: Skip tracer test on Python 3.9 due to incompatibility
-
[OPIK-1875]: Relaxed check of keys in usage dictionary to avoid flakiness du to variability of model response.
-
[OPIK-1875]: Removed
thoughts_tokensfrom OPIK usage
下载附件
-