Skip to content

Unrecognized keyword arguments: response_format #33

@lucasramosdev

Description

@lucasramosdev

Subject: Question about with_structured_output with OCI LLM integration

Hi everyone,

I'm trying to use .with_structured_output with the new OCI LLM integration, but I get a TypeError: Unrecognized keyword argument: response_format.

When I call it without with_structured_output (just .ainvoke), I receive a response.

Is the new OCI integration compatible with with_structured_output?

I needed to hidden some parts of code, but this is the most important part to understand the problem:

... init code ...()
        self.__llm = ChatOCIGenAI(**parameters)


...function code ()
      response = await self.__llm.with_structured_output(
          schema=None, method="json_mode", include_raw=True
      ).ainvoke(messages)

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions