wuyiqun0718 commited on
Commit
1e06f84
1 Parent(s): 8813b85
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. README.md +1 -0
  3. components/chat/ChatMessage.tsx +3 -1
Dockerfile CHANGED
@@ -41,9 +41,9 @@ COPY --from=builder --link --chown=1000:1000 /app/.next/standalone ./
41
  COPY --from=builder --link --chown=1000:1000 /app/.next/static ./.next/static
42
  COPY --from=builder --link --chown=1000:1000 /app/.next/cache/images ./.next/cache/images
43
 
44
- EXPOSE 7860
45
 
46
- ENV PORT 7860
47
  ENV HOSTNAME 0.0.0.0
48
 
49
  CMD ["node", "server.js"]
 
41
  COPY --from=builder --link --chown=1000:1000 /app/.next/static ./.next/static
42
  COPY --from=builder --link --chown=1000:1000 /app/.next/cache/images ./.next/cache/images
43
 
44
+ EXPOSE 3000
45
 
46
+ ENV PORT 3000
47
  ENV HOSTNAME 0.0.0.0
48
 
49
  CMD ["node", "server.js"]
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: yellow
5
  colorTo: indigo
6
  sdk: docker
7
  pinned: false
 
8
  ---
9
 
10
  <a href="https://chat.vercel.ai/">
 
5
  colorTo: indigo
6
  sdk: docker
7
  pinned: false
8
+ app_port: 3000
9
  ---
10
 
11
  <a href="https://chat.vercel.ai/">
components/chat/ChatMessage.tsx CHANGED
@@ -46,7 +46,9 @@ export const ChatMessage: React.FC<ChatMessageProps> = ({
46
  const [formattedSections, finalResult, finalError] = useMemo(
47
  () =>
48
  formatStreamLogs(
49
- responseBody ?? wipAssistantMessage ?? JSON.parse(response ?? ''),
 
 
50
  ),
51
  [response, wipAssistantMessage, result, responseBody],
52
  );
 
46
  const [formattedSections, finalResult, finalError] = useMemo(
47
  () =>
48
  formatStreamLogs(
49
+ responseBody ??
50
+ wipAssistantMessage ??
51
+ (response ? JSON.parse(response) : ''),
52
  ),
53
  [response, wipAssistantMessage, result, responseBody],
54
  );