generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
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
Labels
No labels