Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/sdcb/chats into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Dec 11, 2024
2 parents 56532d4 + e52187a commit d27d49d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/FE/.gitattributes

This file was deleted.

4 changes: 4 additions & 0 deletions src/FE/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

npm run format
32 changes: 17 additions & 15 deletions src/FE/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/FE/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --write ."
"format": "prettier --write .",
"prepare": "husky"
},
"dependencies": {
"@hookform/resolvers": "^3.3.4",
Expand Down Expand Up @@ -65,6 +66,7 @@
"cross-env": "^7.0.3",
"eslint": "8.49.0",
"eslint-config-next": "13.4.19",
"husky": "^9.1.7",
"postcss": "^8.4.41",
"prettier": "^2.8.7",
"prettier-plugin-tailwindcss": "^0.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/FE/pages/home/_components/Chat/PromptList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ForwardedRef, MutableRefObject, forwardRef } from 'react';
import { MutableRefObject } from 'react';

import { Prompt } from '@/types/prompt';

Expand Down
3 changes: 2 additions & 1 deletion src/FE/pages/home/_components/HomeContent/HomeContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from '@/utils/chats';
import { getSelectMessages } from '@/utils/message';
import { getStorageModelId, setStorageModelId } from '@/utils/model';
import { formatPrompt } from '@/utils/promptVariable';
import { getSettings, saveSettings } from '@/utils/settings';
import { Settings } from '@/utils/settings';
import { getLoginUrl, getUserInfo, getUserSession } from '@/utils/user';
Expand Down Expand Up @@ -102,7 +103,7 @@ const HomeContent = () => {
data.temperature ??
userModelConfig?.temperature ??
DEFAULT_TEMPERATURE,
prompt: data.content,
prompt: formatPrompt(data.content, { model }),
});
});
};
Expand Down

0 comments on commit d27d49d

Please sign in to comment.