Spaces:
Running
Running
use cdn instead
Browse files- .gitignore +5 -1
- components/chat/index.tsx +3 -2
.gitignore
CHANGED
|
@@ -40,4 +40,8 @@ yarn-error.log*
|
|
| 40 |
*.tsbuildinfo
|
| 41 |
next-env.d.ts
|
| 42 |
|
| 43 |
-
.idea
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
*.tsbuildinfo
|
| 41 |
next-env.d.ts
|
| 42 |
|
| 43 |
+
.idea
|
| 44 |
+
|
| 45 |
+
# binary assets (hosted on CDN)
|
| 46 |
+
assets/assistant.jpg
|
| 47 |
+
.gitattributes
|
components/chat/index.tsx
CHANGED
|
@@ -20,7 +20,8 @@ import { Button } from "@/components/ui/button";
|
|
| 20 |
import { getFileIcon } from "@/components/ask-ai/input-mentions";
|
| 21 |
import ProIcon from "@/assets/pro.svg";
|
| 22 |
import { ProModal } from "../pro-modal";
|
| 23 |
-
|
|
|
|
| 24 |
|
| 25 |
export function AppEditorChat({
|
| 26 |
isNew,
|
|
@@ -109,7 +110,7 @@ export function AppEditorChat({
|
|
| 109 |
src={
|
| 110 |
message.role === "user"
|
| 111 |
? session?.user?.image ?? ""
|
| 112 |
-
:
|
| 113 |
}
|
| 114 |
alt="DeepSite"
|
| 115 |
className="size-4"
|
|
|
|
| 20 |
import { getFileIcon } from "@/components/ask-ai/input-mentions";
|
| 21 |
import ProIcon from "@/assets/pro.svg";
|
| 22 |
import { ProModal } from "../pro-modal";
|
| 23 |
+
|
| 24 |
+
const ASSISTANT_AVATAR_URL = "https://i.imgur.com/Ho6v0or.jpeg";
|
| 25 |
|
| 26 |
export function AppEditorChat({
|
| 27 |
isNew,
|
|
|
|
| 110 |
src={
|
| 111 |
message.role === "user"
|
| 112 |
? session?.user?.image ?? ""
|
| 113 |
+
: ASSISTANT_AVATAR_URL
|
| 114 |
}
|
| 115 |
alt="DeepSite"
|
| 116 |
className="size-4"
|