Skip to content

Commit c271986

Browse files
committed
Configure the middleware (?)
1 parent a9542a3 commit c271986

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

samples/client/lit/shell_v0_9/middleware/a2a.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const A2UI_MIME_TYPE = "application/json+a2ui";
2929

3030
const fetchWithCustomHeader: typeof fetch = async (url, init) => {
3131
const headers = new Headers(init?.headers);
32-
headers.set("X-A2A-Extensions", "https://a2ui.org/a2a-extension/a2ui/v0.8");
32+
headers.set("X-A2A-Extensions", "https://a2ui.org/a2a-extension/a2ui/v0.9");
3333

3434
const newInit = { ...init, headers };
3535
return fetch(url, newInit);

samples/client/lit/shell_v0_9/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default async () => {
3030
};
3131

3232
return {
33+
// Do we need this for this sample?
3334
plugins: [Middleware.A2AMiddleware.plugin()],
3435
build: {
3536
rollupOptions: {

0 commit comments

Comments
 (0)