request metadata

This commit is contained in:
Brandon Thomas committed 2025-10-21 19:38:33 -04:00
1 parent b4dafa5926
commit 6854243fd4
5 files changed
+26 -3

No files matched your search

@@ -0,0 +1,24 @@
curl 'https://grok.com/rest/app-chat/conversations/new' \
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'baggage: sentry-environment=production,sentry-public_key=b311e0f2690c81f25e2c4cf6d4f7ce1c,sentry-trace_id=e6364e990c1c6323d921be66f302ae4c,sentry-org_id=4508179396558848,sentry-sampled=false,sentry-sample_rand=0.1163701079375088,sentry-sample_rate=0' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-b '_ga=GA1.1.1232202746.1760710013; i18nextLng=en; sso=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZXNzaW9uX2lkIjoiOGU3MDFiNzctOTdkNC00ZjM0LWExOTctOWFmMDU1MzY3NDAwIn0.-a6x0InxbGzfTVfUlrdzxskxCnvMDI8lC90z4wHeGIk; sso-rw=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZXNzaW9uX2lkIjoiOGU3MDFiNzctOTdkNC00ZjM0LWExOTctOWFmMDU1MzY3NDAwIn0.-a6x0InxbGzfTVfUlrdzxskxCnvMDI8lC90z4wHeGIk; stblid=b3331fc1-45d7-466b-83df-67427c0b2367; cf_clearance=Olsa5S4XZRkpXnkTimScfA2BS2pAUhYUekBoGpl6wTM-1761089503-1.2.1.1-r0eoaGnqMSC6GzMQg3v4g3yuMTA_RPq1l8aegFvhmQwfsChLMc2yIO9RxeVBHX3pgRS.V3K8opP.fparwgv6QBrU4nCQLffH_CFXNVsyxloZUweZDAALRV1ga0q0BNGHT7eYK07c6q5nJyJgR0oKjpxp2d3ppxREr2_hdZFBloGpK9FIJMonfeZwQ6l4V7lOVpAZLqUiympOxKQ3ZjyrlBOxPyA0iyLGKH..tIBYKkE; mp_ea93da913ddb66b6372b89d97b1029ac_mixpanel=%7B%22distinct_id%22%3A%2285980643-ffab-4984-a3de-59a608c47d7f%22%2C%22%24device_id%22%3A%2279ce237a-a0f3-4913-bf4b-519ac8a98263%22%2C%22%24initial_referrer%22%3A%22%24direct%22%2C%22%24initial_referring_domain%22%3A%22%24direct%22%2C%22__mps%22%3A%7B%7D%2C%22__mpso%22%3A%7B%7D%2C%22__mpus%22%3A%7B%7D%2C%22__mpa%22%3A%7B%7D%2C%22__mpu%22%3A%7B%7D%2C%22__mpr%22%3A%5B%5D%2C%22__mpap%22%3A%5B%5D%2C%22%24user_id%22%3A%2285980643-ffab-4984-a3de-59a608c47d7f%22%7D; _ga_8FEWB057YH=GS2.1.s1761089504$o11$g1$t1761089537$j27$l0$h0' \
-H 'origin: https://grok.com' \
-H 'pragma: no-cache' \
-H 'priority: u=1, i' \
-H 'referer: https://grok.com/imagine/post/9975d1e8-39fc-4aa7-b07e-dce277c86fc2-6' \
-H 'sec-ch-ua: "Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'sentry-trace: e6364e990c1c6323d921be66f302ae4c-988656e734bd8fac-0' \
-H 'traceparent: 00-bd3ee61b26049cd83ac155707b212e29-3863296c6a69ba75-01' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36' \
-H 'x-statsig-id: m98Mcu7Nu3XE7f7nKkOkTV+6o3umVEZDi49lTsWZOYN7WvJPQpiBe8SgHTQBm2i1kXgvM58sW2Tma6wXNlbMuecZlGy5mA' \
-H 'x-xai-request-id: 7990d40e-b460-4bd1-a439-354bfbc72632' \
--data-raw '{"temporary":true,"modelName":"grok-3","message":"https://imagine-public.x.ai/imagine-public/images/6136f31a-4aaf-48e0-ab86-fe9871feca91.png the pirate ship is sailing and suddenly gets attacked by a sea monster --mode=custom","toolOverrides":{"videoGen":true}}'
@@ -112,7 +112,7 @@ mod tests {
let maybe_message = WebsocketServerMessage::from_json_str(text.as_str())?;
let mut text = text.as_str().to_string();
text.truncate(100);
println!("Received message: {}", text);
//println!("Received message: {}", text);
maybe_raw_text = Some(text);
Some(maybe_message)
},
@@ -151,7 +151,7 @@ mod tests {
// TODO: Video websocket APIs
// TODO: Upload APIs
if count > 5 {
if count > 30 {
println!("No messages after 5 seconds");
break;
}
@@ -1,3 +1,2 @@
mod generate;
mod listen_websocket;
mod other;