Skip to content

Commit

Permalink
Merge pull request #289 from tegnike/develop
Browse files Browse the repository at this point in the history
本番リリース
  • Loading branch information
tegnike authored Jan 14, 2025
2 parents ffc1199 + 757cc5b commit 5964df9
Show file tree
Hide file tree
Showing 17 changed files with 319 additions and 30 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ NEXT_PUBLIC_AZURE_ENDPOINT=""
DIFY_KEY=""
DIFY_URL=""

# DeepSeek
DEEPSEEK_KEY=""

# Local LLM
NEXT_PUBLIC_LOCAL_LLM_URL=""
NEXT_PUBLIC_LOCAL_LLM_MODEL=""
Expand Down
12 changes: 12 additions & 0 deletions cursor.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## 新しいLLMサービスを追加する
- src/features/chat/handlers.ts
- src/components/settings/modelProvider.tsx
- src/features/stores/settings.ts
- locales/ja/translation.json
- locales/ko/translation.json
- locales/zh/translation.json
- locales/en/translation.json
- src/features/chat/vercelAIChat.ts
- src/pages/api/aiChat.ts
- src/features/chat/aiChatFactory.ts
- .env.example
1 change: 1 addition & 0 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"PerplexityAPIKeyLabel": "Perplexity API Key",
"FireworksAPIKeyLabel": "Fireworks API Key",
"DifyAPIKeyLabel": "Dify API Key",
"DeepSeekAPIKeyLabel": "DeepSeek API Key",
"APIKeyInstruction": "You can obtain the API key below. Enter the obtained API key into the form.",
"LocalLLMInfo": "Local LLM server must be running. Setup is as follows.",
"LocalLLMInfo2": "Please enter the URL of the local LLM server (including port number) and the model name.",
Expand Down
1 change: 1 addition & 0 deletions locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"PerplexityAPIKeyLabel": "Perplexity API キー",
"FireworksAPIKeyLabel": "Fireworks API キー",
"DifyAPIKeyLabel": "Dify API キー",
"DeepSeekAPIKeyLabel": "DeepSeek API キー",
"APIKeyInstruction": "APIキーは下記のリンクから取得できます。取得したAPIキーをフォームに入力してください。",
"LocalLLMInfo": "ローカルLLM サーバーを起動している必要があります。",
"LocalLLMInfo2": "ローカルLLMのURL(ポート番号込み)とモデル名を入力してください。",
Expand Down
1 change: 1 addition & 0 deletions locales/ko/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"PerplexityAPIKeyLabel": "Perplexity API 키",
"FireworksAPIKeyLabel": "Fireworks API 키",
"DifyAPIKeyLabel": "Dify API 키",
"DeepSeekAPIKeyLabel": "DeepSeek API 키",
"APIKeyInstruction": "API 키는 아래 링크에서 얻을 수 있습니다. 얻은 API 키를 폼에 입력하십시오.",
"LocalLLMInfo": "로컬 LLM 서버를 실행해야 합니다.",
"LocalLLMInfo2": "로컬 LLM의 URL(포트 번호 포함)과 모델 이름을 입력하십시오.",
Expand Down
3 changes: 2 additions & 1 deletion locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,6 @@
"sadMotionGroup": "悲伤",
"angryMotionGroup": "愤怒",
"relaxedMotionGroup": "放松"
}
},
"DeepSeekAPIKeyLabel": "DeepSeek API 金鑰"
}
195 changes: 194 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@ai-sdk/anthropic": "^0.0.48",
"@ai-sdk/azure": "^0.0.32",
"@ai-sdk/cohere": "^0.0.22",
"@ai-sdk/deepseek": "^0.0.4",
"@ai-sdk/google": "^1.0.3",
"@ai-sdk/mistral": "^0.0.38",
"@ai-sdk/openai": "^0.0.54",
Expand All @@ -35,7 +36,7 @@
"@tailwindcss/line-clamp": "^0.4.4",
"@types/uuid": "^10.0.0",
"@vercel/analytics": "^1.3.1",
"ai": "^3.3.20",
"ai": "^3.4.33",
"axios": "^1.6.8",
"canvas": "^2.11.2",
"formidable": "^3.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Main = () => {
const Footer = () => {
return (
<footer className="absolute py-4 bg-[#413D43] text-center text-white font-Montserrat bottom-0 w-full">
powered by ChatVRM from Pixiv / ver. 2.22.0
powered by ChatVRM from Pixiv / ver. 2.23.0
</footer>
)
}
2 changes: 1 addition & 1 deletion src/components/settings/log.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Log = () => {
className="my-8 grid grid-flow-col grid-cols-[min-content_1fr] gap-x-fixed"
>
<div className="w-[64px] py-8">
{value.role === 'assistant' ? 'Character' : 'You'}
{value.role === 'user' ? 'You' : 'Character'}
</div>
{typeof value.content == 'string' ? (
<input
Expand Down
Loading

0 comments on commit 5964df9

Please sign in to comment.