Skip to content

Commit 3668b9c

Browse files
authored
Use Cloudflare AI playground as name concat with sessionId (#622)
1 parent 72b6c49 commit 3668b9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/ai-playground/src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const App = () => {
7575

7676
const agent = useAgent<Playground, PlaygroundState>({
7777
agent: "playground",
78-
name: sessionId,
78+
name: `Cloudflare-AI-Playground-${sessionId}`,
7979
onError(event) {
8080
console.error("[App] onError callback triggered with event:", event);
8181
},

site/ai-playground/src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const Header = ({ onSetCodeVisible }: HeaderProps) => {
162162
</a>
163163
<a
164164
className="hover:bg-gray-50 text-sm cursor-pointer font-sm px-3 py-2 bg-white border border-gray-200 rounded-md shadow-sm flex items-center"
165-
href="https://github.com/cloudflare/agents/tree/main/examples/ai-playground"
165+
href="https://github.com/cloudflare/agents/tree/main/site/ai-playground"
166166
target="_blank"
167167
rel="noreferrer"
168168
>

0 commit comments

Comments
 (0)