Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
AstarF authored and AstarF committed Aug 23, 2023
1 parent ed50d2c commit 8a0d2bc
Show file tree
Hide file tree
Showing 20 changed files with 960 additions and 594 deletions.
2 changes: 1 addition & 1 deletion app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ChatGPTApi implements LLMApi {
if (!openaiUrl.startsWith("http") && !openaiUrl.startsWith("/api/openai")) {
openaiUrl = "https://" + openaiUrl;
}
openaiUrl = "https://chatgpt1.nextweb.fun/api/proxy"
openaiUrl = "https://api.ai-yyds.com" //"https://chatgpt1.nextweb.fun/api/proxy"
return [openaiUrl, path].join("/");
}

Expand Down
26 changes: 14 additions & 12 deletions app/components/chat-list.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DeleteIcon from "../icons/delete.svg";
import BotIcon from "../icons/bot.svg";
//import BotIcon from "../icons/bot.svg";

import styles from "./home.module.scss";
import {
Expand Down Expand Up @@ -57,16 +57,17 @@ export function ChatItem(props: {
props.count,
)}`}
>
{props.narrow ? (
<div className={styles["chat-item-narrow"]}>
<div className={styles["chat-item-avatar"] + " no-dark"}>
<MaskAvatar mask={props.mask} />
</div>
<div className={styles["chat-item-narrow-count"]}>
{props.count}
</div>
</div>
) : (
{
// props.narrow ? (
// <div className={styles["chat-item-narrow"]}>
// <div className={styles["chat-item-avatar"] + " no-dark"}>
// <MaskAvatar mask={props.mask} />
// </div>
// <div className={styles["chat-item-narrow-count"]}>
// {props.count}
// </div>
// </div>
// ) : (
<>
<div className={styles["chat-item-title"]}>{props.title}</div>
<div className={styles["chat-item-info"]}>
Expand All @@ -76,7 +77,8 @@ export function ChatItem(props: {
<div className={styles["chat-item-date"]}>{props.time}</div>
</div>
</>
)}
//)
}

<div
className={styles["chat-item-delete"]}
Expand Down
3 changes: 1 addition & 2 deletions app/components/chat.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
resize: none;
outline: none;
box-sizing: border-box;
min-height: 68px;
min-height: 128px;
}

.chat-input:focus {
Expand All @@ -493,7 +493,6 @@
.chat-input-send {
background-color: var(--primary);
color: white;

position: absolute;
right: 30px;
bottom: 32px;
Expand Down
Loading

1 comment on commit 8a0d2bc

@4everland
Copy link

@4everland 4everland bot commented on 8a0d2bc Aug 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following parameters

parameters Value
IPFS CID bafybeihn46virqmzpmgbm25nvjltqusdbs3gqxf5rths2v7lvkgz6b4pee
Assigned domain https://qianmian-wxa0zzcj-astarf.4everland.app
https://qianmian.4everland.app
Custom domain

Please sign in to comment.