rebrand ai-chatbot to openchat across app and api (#1418)

This commit is contained in:
dancer 2026-02-20 15:28:40 -08:00 committed by GitHub
parent 9d5d8a3ea7
commit f7b6b55a8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 90 additions and 90 deletions

View file

@ -21,7 +21,7 @@ import { useArtifactSelector } from "@/hooks/use-artifact";
import { useAutoResume } from "@/hooks/use-auto-resume";
import { useChatVisibility } from "@/hooks/use-chat-visibility";
import type { Vote } from "@/lib/db/schema";
import { ChatSDKError } from "@/lib/errors";
import { OpenChatError } from "@/lib/errors";
import type { Attachment, ChatMessage } from "@/lib/types";
import { fetcher, fetchWithErrorHandlers, generateUUID } from "@/lib/utils";
import { Artifact } from "./artifact";
@ -138,7 +138,7 @@ export function Chat({
mutate(unstable_serialize(getChatHistoryPaginationKey));
},
onError: (error) => {
if (error instanceof ChatSDKError) {
if (error instanceof OpenChatError) {
if (
error.message?.includes("AI Gateway requires a valid credit card")
) {