Skip to content
Discussion options

You must be logged in to vote

😣This solution must not be the best solution

A simple solution

Notice that @dosu mentions the function with_structured_output in init function, i found that my ChatOpenAI always pass the structured_output test but the output is empty.So I noticed immediately afterward that if i set self._function_call = False the program will go to another logic in process_response which can process the raw json into node and relationship 👍

Details

I have changed the init func in llm to support the ChatOpenAI Model with a proxy baseurl which process not well in LLMGraphTransformer

  def __init__(
            self,
            llm: BaseLanguageModel,
            allowed_nodes: List[str] = [],
            a…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dosubot
Comment options

@RidiculousBuffal
Comment options

Answer selected by RidiculousBuffal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants