Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions gui/src/pages/gui/StreamError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Cog6ToothIcon,
KeyIcon,
} from "@heroicons/react/24/outline";
import { DISCORD_LINK, GITHUB_LINK } from "core/util/constants";
import { DISCORD_LINK } from "core/util/constants";
import { useContext, useMemo } from "react";
import { GhostButton, SecondaryButton } from "../../components";
import { useEditModel } from "../../components/mainInput/Lump/useEditBlock";
Expand Down Expand Up @@ -290,11 +290,27 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => {
<GhostButton
className="flex flex-row items-center gap-2 rounded px-3 py-1.5"
onClick={() => {
ideMessenger.post("openUrl", GITHUB_LINK);
const issueTitle = `Error: ${selectedModel?.title || "Model"} - ${statusCode || "Unknown error"}`;
const issueBody = `**Error Details**

Model: ${selectedModel?.title || "Unknown"}
Provider: ${selectedModel?.provider || "Unknown"}
Status Code: ${statusCode || "N/A"}

**Error Output**
\`\`\`
${parsedError}
\`\`\`

**Additional Context**
Please add any additional context about the error here
`;
const url = `https://github.com/continuedev/continue/issues/new?title=${encodeURIComponent(issueTitle)}&body=${encodeURIComponent(issueBody)}`;
ideMessenger.post("openUrl", url);
}}
>
<GithubIcon className="h-5 w-5" />
<span className="xs:flex hidden">Github</span>
<span className="xs:flex hidden">Open GitHub issue</span>
</GhostButton>
<GhostButton
className="flex flex-row items-center gap-2 rounded px-3 py-1.5"
Expand Down
Loading