Replies: 1 comment
-
|
…yeah I think the right thing for the xAI provider is to move toward the newer Responses/agent tools API instead of patching search_parameters in chat — because the old Live Search tool is being deprecated soon and replaced with the agentic tool approach that uses search tools like web_search / x_search |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all 👋🏻
Really loving Prism so far!
I'm trying to implement XAI Live Search, but I’m struggling to figure out how to include
search_parametersin the request body.I need to essentially build this request:
Initially, I assumed provider options were just forwarded to the request body, so I tried this:
After a bit of source diving, it looks like provider options aren’t just passed through — they’re used differently for each provider (e.g. https://github.com/prism-php/prism/blob/main/src/Providers/XAI/Concerns/ExtractsThinking.php#L16).
So yeah — is there any way to hook into or modify the outgoing request to add custom parameters like this?
Beta Was this translation helpful? Give feedback.
All reactions