Skip to content

Allow MD_JSON for bedrock client #2076

@RohanJnr

Description

@RohanJnr

Bedrock models such as Kimi K2 Thinking usually return ... tags which precedes the actual JSON data. Currently instructor retries and eventually the model returns the JSON only.

It would be great if we could use MD_JSON or custom processors to handle removing such tags.

Additional context
Using version = "1.14.5"

I did notice in the documentation that BEDROCK_JSON is legacy and replaced by MD_JSON but I still don't find doc to replace it in code or find a solution to the problem I have described

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions