Skip to content

Commit

Permalink
Fix prettier break
Browse files Browse the repository at this point in the history
  • Loading branch information
blrchen committed Dec 4, 2023
1 parent 34a09ae commit 50256d3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ OpenAI账户环境变量:
| ------------------- | ---------------------------------------------------------------------------------- | ------------------------ |
| OPENAI_API_BASE_URL | 如需为`api.openai.com`使用反向代理,请使用此变量。 | `https://api.openai.com` |
| OPENAI_API_KEY |[OpenAI API网站](https://platform.openai.com/account/api-keys)获取的密钥字符串。 |
| OPENAI_MODEL | GPT模型 | `gpt-3.5-turbo` |
| OPENAI_MODEL | GPT模型 | `gpt-3.5-turbo` |

Azure OpenAI账户环境变量:

Expand Down
9 changes: 2 additions & 7 deletions app/(site)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
'use client'

export default function Home() {

return (
<main className="p-4">

</main>
)
}
return <main className="p-4"></main>
}
10 changes: 5 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export default function RootLayout({ children }: { children: React.ReactNode })
return (
<html lang="en" suppressHydrationWarning>
<body className={inter.className}>
<ThemesProvider>
<Header />
{children}
<Toaster />
</ThemesProvider>
<ThemesProvider>
<Header />
{children}
<Toaster />
</ThemesProvider>
</body>
</html>
)
Expand Down
2 changes: 1 addition & 1 deletion components/Chat/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Message = (props: MessageProps) => {
return (
<Flex gap="4" className="mb-5">
<Avatar
fallback={ <SiOpenai className="h-4 w-4 " />}
fallback={<SiOpenai className="h-4 w-4" />}
color={isUser ? undefined : 'green'}
size="2"
radius="full"
Expand Down
9 changes: 2 additions & 7 deletions components/HeaderUser.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
'use client'

import { Avatar, DropdownMenu, IconButton } from '@radix-ui/themes'
import {SiOpenai} from "react-icons/si";
import { SiOpenai } from 'react-icons/si'

export const HeaderUser = () => {

return (
<DropdownMenu.Root>
<DropdownMenu.Trigger>
<IconButton radius="full">
<Avatar
fallback={ <SiOpenai className="h-4 w-4 " />}
size="2"
radius="full"
/>
<Avatar fallback={<SiOpenai className="h-4 w-4" />} size="2" radius="full" />
</IconButton>
</DropdownMenu.Trigger>
</DropdownMenu.Root>
Expand Down
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const nextConfig = {
{
source: '/',
destination: '/chat',
permanent: true,
},
permanent: true
}
]
},
}
}

module.exports = nextConfig

0 comments on commit 50256d3

Please sign in to comment.