79506857

Date: 2025-03-13 15:15:18
Score: 4
Natty:
Report link

How do I tell langchain4j to use the tool from openAI itself?

You need to set langchain4j.open-ai.chat-model.model-name = gpt-4o-search-preview

And How do I tell langchain4j to set the web_search_options like on the python code snippet below

Unfortunately there is currently no way to set it

Reasons:
  • Blacklisted phrase (1): How do I
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: LangChain4j