Skip to content

Commit

Permalink
颜色,聊天中显示模型。
Browse files Browse the repository at this point in the history
  • Loading branch information
htmambo committed Jan 27, 2024
1 parent cb0ee6f commit 415bddb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
5 changes: 0 additions & 5 deletions app/api/google/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,14 @@ export const POST = handle;

export const runtime = "edge";
export const preferredRegion = [
"arn1",
"bom1",
"cdg1",
"cle1",
"cpt1",
"dub1",
"fra1",
"gru1",
"hnd1",
"iad1",
"icn1",
"kix1",
"lhr1",
"pdx1",
"sfo1",
"sin1",
Expand Down
2 changes: 1 addition & 1 deletion app/components/chat.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@

.chat-message-action-date {
font-size: 12px;
opacity: 0.2;
opacity: 0.6;
white-space: nowrap;
transition: all ease 0.6s;
color: var(--black);
Expand Down
4 changes: 2 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,8 @@ function _Chat() {

<div className={styles["chat-message-action-date"]}>
{isContext
? Locale.Chat.IsContext
: message.date.toLocaleString()}
? `${Locale.Chat.IsContext}${!isMobileScreen ? ` - ${Locale.Exporter.Model}: ${message.model || session.mask.modelConfig.model}` : ''}`
: `${Locale.Exporter.Time}: ${message.date.toLocaleString()}${!isMobileScreen ? ` - ${Locale.Exporter.Model}: ${message.model || session.mask.modelConfig.model}` : ''}`}
</div>
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions app/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const SUMMARIZE_MODEL = "gpt-3.5-turbo";

export const KnowledgeCutOffDate: Record<string, string> = {
default: "2021-09",
"gpt-4-turbo-preview": "2023-04",
"gpt-4-1106-preview": "2023-04",
"gpt-4-0125-preview": "2023-04",
"gpt-4-vision-preview": "2023-04",
Expand Down Expand Up @@ -167,6 +168,15 @@ export const DEFAULT_MODELS = [
providerType: "openai",
},
},
{
name: "gpt-4-turbo-preview",
available: true,
provider: {
id: "openai",
providerName: "OpenAI",
providerType: "openai",
},
},
{
name: "gpt-4-1106-preview",
available: true,
Expand Down
11 changes: 5 additions & 6 deletions app/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
--theme: light;

/* color */
--white: white;
--black: rgb(48, 48, 48);
--gray: rgb(250, 250, 250);
--white: rgb(22, 28, 35);
--black: white; --gray: rgb(250, 250, 250);
--primary: rgb(29, 147, 171);
--second: rgb(231, 248, 255);
--hover-color: #f3f3f3;
Expand All @@ -26,12 +25,12 @@
--theme: dark;

/* color */
--white: rgb(30, 30, 30);
--black: rgb(187, 187, 187);
--white: rgb(22, 28, 35);
--black: white;
--gray: rgb(21, 21, 21);
--primary: rgb(29, 147, 171);
--second: rgb(27 38 42);
--hover-color: #323232;
--hover-color: #292f35;

--bar-color: rgba(255, 255, 255, 0.1);

Expand Down

0 comments on commit 415bddb

Please sign in to comment.