发布

  • [OPIK-2484] [P SDK] alexkuzmik / add invoke_model and invoke_model_with_response_stream support to bedrock integration (#3385)

    frostbyte_neo 发布于 2025-10-08 12:31:48 +00:00

    • Draft implementation - invoke_model

    • Remove obsolete commented code

    • Update _end_span_inputs_preprocessor

    • Fix type hints

    • Implement usage parsing logic for invoke_model decorator

    • Implement happy flows tests for invoke model

    • Implement streaming support for various bedrock subproviders in invoke_model_with_streaming_response

    • Add more tests, fix the integration logic

    • Update bedrock integration doc

    • Update bedrock doc text, add new images

    • Move streaming screenshot right after the converse stream API description

    • Apply suggestion from @Copilot

    Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com

    • Optimised images with calibre/image-actions

    • Address review comments

    • Move api function from init module to api.py

    • Remove duplicated code

    • Skip some of the tests for newer langchain_openai versions

    • Rename helpers to types

    • Small code fixes in stream wrappers


    Co-authored-by: Vincent Koc vincentk@comet.com
    Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

    下载附件