We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bf3cc commit 532ea40Copy full SHA for 532ea40
jumble/src/iframe-ctx.ts
@@ -248,9 +248,13 @@ export const setupIframe = () =>
248
"groq:llama-3.3-70b-versatile",
249
];
250
}
251
+ // FIXME(ja): how can we get this from the system not the url?
252
+ const parts = globalThis.location.pathname.split("/");
253
jsonPayload.metadata = {
254
...jsonPayload.metadata,
255
context: "iframe",
256
+ spaceName: parts[1] ?? "fixme",
257
+ charmId: parts[2] ?? "fixme",
258
};
259
260
const res = await llm.sendRequest(jsonPayload);
0 commit comments