@fre4x/grok 1.1.0-beta.6 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46777,7 +46777,12 @@ async function handleGrokSearchX(params, client = xaiClient) {
|
|
|
46777
46777
|
if (IS_MOCK) return MOCK_FIXTURES.search_x;
|
|
46778
46778
|
const { data } = await client.post("/responses", {
|
|
46779
46779
|
model: GROK_SEARCH_MODEL,
|
|
46780
|
-
input: [
|
|
46780
|
+
input: [
|
|
46781
|
+
{
|
|
46782
|
+
role: "user",
|
|
46783
|
+
content: `Search X (Twitter) for: ${query}. Use the x_search tool.`
|
|
46784
|
+
}
|
|
46785
|
+
],
|
|
46781
46786
|
tools: [
|
|
46782
46787
|
{
|
|
46783
46788
|
type: "x_search",
|