You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LangChain: Fix message timestamps, add default role assignment, and Bedrock support (#1580)
* Record the request message as the time the request started for LangChain.
* Tracking the original timestamp of the request for input messages that are
recorded as LlmChatCompletionMessage event types.
* First pass at preserving LlmChatCompletionMessage timestamp for the request
with Bedrock methods.
* the `kwargs` was being mapped directly to the OpenAI client
and having timestamp in there caused a problem. As a quick test,
only add the request timestamp after the wrapped function has been
invoked.
* Moved the request timestamp to its own variable instead of part of kwargs.
* OpenAI async request messages were not being assigned the correct timestamp.
* Trying to improve the passing of the request timestamp through for Bedrock.
* Passing too many parameters.
* Set a default role on input/output messages within LangChain.
* [MegaLinter] Apply linters fixes
* Fix request_timestamp for LlmChatCompletionSummary table
* Fix request_timestamp for LlmChatCompletionSummary table
* [MegaLinter] Apply linters fixes
* Bedrock Converse Streaming Support (#1565)
* Add more formatting to custom event validatators
* Add streamed responses to converse mock server
* Add streaming fixtures for testing for converse
* Rename other bedrock test files
* Add tests for converse streaming
* Instrument converse streaming
* Move GeneratorProxy adjacent functions to mixin
* Fix checking of supported models
* Reorganize converse error tests
* Port new converse botocore tests to aiobotocore
* Instrument response streaming in aiobotocore converse
* Fix suggestions from code review
* Port in converse changes from strands PR
* Delete commented code
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Bedrock Converse Streaming Support (#1565)
* Add more formatting to custom event validatators
* Add streamed responses to converse mock server
* Add streaming fixtures for testing for converse
* Rename other bedrock test files
* Add tests for converse streaming
* Instrument converse streaming
* Move GeneratorProxy adjacent functions to mixin
* Fix checking of supported models
* Reorganize converse error tests
* Port new converse botocore tests to aiobotocore
* Instrument response streaming in aiobotocore converse
* Fix suggestions from code review
* Port in converse changes from strands PR
* Delete commented code
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* [MegaLinter] Apply linters fixes
* request_timestamp is now passed across different method
* Fixed gemini model kwargs issue
* [MegaLinter] Apply linters fixes
* Update tests to validate presence of timestamp/ role and fix bugs in instrumentation.
* Update aiobotocore instrumentation to receive request timestamp.
---------
Co-authored-by: Josh Bonczkowski <jbonczkowski@newrelic.com>
Co-authored-by: sgoel-nr <236423107+sgoel-nr@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Timothy Pansino <11214426+TimPansino@users.noreply.github.com>
Co-authored-by: Uma Annamalai <uannamalai@newrelic.com>
0 commit comments