Skip to content

Commit

Permalink
いくつかのAIサービスを選択できるように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tegnike committed Aug 30, 2024
1 parent afe996f commit 847d280
Show file tree
Hide file tree
Showing 12 changed files with 622 additions and 142 deletions.
9 changes: 7 additions & 2 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@
"OpenAIAPIKeyLabel": "OpenAI API Key",
"AnthropicAPIKeyLabel": "Anthropic API Key",
"GoogleAPIKeyLabel": "Google Gemini API Key",
"AzureAPIKeyLabel": "Azure OpenAI API Key",
"AzureAPIURL": "Azure OpenAI API URL",
"GroqAPIKeyLabel": "Groq API Key",
"CohereAPIKeyLabel": "Cohere API Key",
"MistralAIAPIKeyLabel": "MistralAI API Key",
"PerplexityAPIKeyLabel": "Perplexity API Key",
"FireworksAPIKeyLabel": "Fireworks API Key",
"DifyAPIKeyLabel": "Dify API Key",
"APIKeyInstruction": "You can obtain the API key below. Enter the obtained API key into the form.",
"ChatGPTInfo": "ChatGPT API is accessed directly from the browser.",
"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.",
"GroqInfo": "Groq API is accessed directly from the browser.",
"DifyInfo": "Dify only supports chatbot type.",
"DifyInfo": "Dify only supports chatbot and agent type.",
"DifyInfo2": "The length of the conversation history is dependent on the specifications of Dify.",
"DifyInfo3": "Example: http://localhost:80/v1/chat-messages",
"DifyInstruction": "If you are using Dify, the system prompt will not be used. Please set Dify chatbot.",
Expand Down
9 changes: 7 additions & 2 deletions locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@
"OpenAIAPIKeyLabel": "OpenAI API キー",
"AnthropicAPIKeyLabel": "Anthropic API キー",
"GoogleAPIKeyLabel": "Google Gemini API キー",
"AzureAPIKeyLabel": "Azure OpenAI API キー",
"AzureAPIURL": "Azure OpenAI API URL",
"GroqAPIKeyLabel": "Groq API キー",
"CohereAPIKeyLabel": "Cohere API キー",
"MistralAIAPIKeyLabel": "MistralAI API キー",
"PerplexityAPIKeyLabel": "Perplexity API キー",
"FireworksAPIKeyLabel": "Fireworks API キー",
"DifyAPIKeyLabel": "Dify API キー",
"APIKeyInstruction": "APIキーは下記のリンクから取得できます。取得したAPIキーをフォームに入力してください。",
"ChatGPTInfo": "ChatGPT APIはブラウザから直接アクセスしています。",
"LocalLLMInfo": "ローカルLLM サーバーを起動している必要があります。",
"LocalLLMInfo2": "ローカルLLMのURL(ポート番号込み)とモデル名を入力してください。",
"GroqInfo": "Groq APIはブラウザから直接アクセスしています。",
"DifyInfo": "Difyでは、チャットボットタイプのみ対応しています",
"DifyInfo": "Difyでは、チャットボット または エージェントタイプのみ対応しています",
"DifyInfo2": "会話履歴の長さはDifyチャットボットの設定に依存します。",
"DifyInfo3": "例:http://localhost:80/v1/chat-messages",
"DifyInstruction": "Difyを使用している場合、このシステムプロンプトは使用されません。Difyチャットボットに設定してください。",
Expand Down
9 changes: 7 additions & 2 deletions locales/ko/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@
"OpenAIAPIKeyLabel": "OpenAI API 키",
"AnthropicAPIKeyLabel": "Anthropic API 키",
"GoogleAPIKeyLabel": "Google Gemini API 키",
"AzureAPIKeyLabel": "Azure OpenAI API 키",
"AzureAPIURL": "Azure OpenAI API URL",
"GroqAPIKeyLabel": "Groq API 키",
"CohereAPIKeyLabel": "Cohere API 키",
"MistralAIAPIKeyLabel": "MistralAI API 키",
"PerplexityAPIKeyLabel": "Perplexity API 키",
"FireworksAPIKeyLabel": "Fireworks API 키",
"DifyAPIKeyLabel": "Dify API 키",
"APIKeyInstruction": "API 키는 아래 링크에서 얻을 수 있습니다. 얻은 API 키를 폼에 입력하십시오.",
"ChatGPTInfo": "ChatGPT API는 브라우저에서 직접 접근하고 있습니다.",
"LocalLLMInfo": "로컬 LLM 서버를 실행해야 합니다.",
"LocalLLMInfo2": "로컬 LLM의 URL(포트 번호 포함)과 모델 이름을 입력하십시오.",
"GroqInfo": "Groq API는 브라우저에서 직접 접근하고 있습니다.",
"DifyInfo": "Dify에서는 채팅 타입만 지원됩니다.",
"DifyInfo": "Dify에서는 채팅 봇과 에이전트 타입만 지원됩니다.",
"DifyInfo2": "대화 기록의 길이는 Dify 채팅봇 설정에 따라 달라집니다.",
"DifyInfo3": "예: http://localhost:80/v1/chat-messages",
"DifyInstruction": "Dify를 사용하는 경우, 이 시스템 프롬프트는 사용되지 않습니다. Dify 채팅 봇에 설정하십시오.",
Expand Down
9 changes: 7 additions & 2 deletions locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"YoutubeMode": "YouTube 模式",
"YoutubeInfo": "YouTube 直播 ID 是直播 ID 而不是頻道 ID",
"YoutubeAPIKey": "YouTube API 金鑰",
"CohereAPIKeyLabel": "Cohere API 金鑰",
"MistralAIAPIKeyLabel": "MistralAI API 金鑰",
"PerplexityAPIKeyLabel": "Perplexity API 金鑰",
"FireworksAPIKeyLabel": "Fireworks API 金鑰",
"YoutubeLiveID": "YouTube 直播 ID",
"ConversationContinuityMode": "會話持續模式(測試版)",
"ConversationContinuityModeInfo": "這是一個在沒有評論時,AI會自行嘗試繼續會話的模式。目前僅支援 OpenAI, Anthropic Claude, Google Gemini。",
Expand All @@ -24,14 +28,15 @@
"OpenAIAPIKeyLabel": "OpenAI API 金鑰",
"AnthropicAPIKeyLabel": "Anthropic API 金鑰",
"GoogleAPIKeyLabel": "Google Gemini API 金鑰",
"AzureAPIKeyLabel": "Azure OpenAI API 金鑰",
"AzureAPIURL": "Azure OpenAI API URL",
"GroqAPIKeyLabel": "Groq API 金鑰",
"DifyAPIKeyLabel": "Dify API 金鑰",
"APIKeyInstruction": "您可以在下方獲取 API 金鑰。請將獲得的 API 金鑰輸入到表單中。",
"ChatGPTInfo": "ChatGPT API 直接從瀏覽器存取。",
"LocalLLMInfo": "Local LLM 伺服器必須正在運行。",
"LocalLLMInfo2": "Local LLM 伺服器URL 和 模型名 必須正確填寫。",
"GroqInfo": "Groq API 直接從瀏覽器存取。",
"DifyInfo": "Dify 只支援聊天機器人型態",
"DifyInfo": "Dify 只支援聊天機器人和代理型態",
"DifyInfo2": "会話履歴的長度取決於Dify聊天機器人的規格。",
"DifyInfo3": "例:http://localhost:80/v1/chat-messages",
"DifyInstruction": "如果您正在使用 Dify,則此系統提示將不會被使用。請將 Dify 聊天機器人設定為系統提示。",
Expand Down
80 changes: 80 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
},
"dependencies": {
"@ai-sdk/anthropic": "^0.0.48",
"@ai-sdk/azure": "^0.0.32",
"@ai-sdk/cohere": "^0.0.22",
"@ai-sdk/google": "^0.0.46",
"@ai-sdk/mistral": "^0.0.38",
"@ai-sdk/openai": "^0.0.54",
"@anthropic-ai/sdk": "^0.20.8",
"@charcoal-ui/icons": "^2.6.0",
Expand Down
Loading

0 comments on commit 847d280

Please sign in to comment.