Compare commits

...

11 Commits
0.0.2 ... main

Author SHA1 Message Date
wood chen
a6cd8d1df5
Update index.html 2024-11-09 14:08:33 +08:00
wood chen
e11323f211
Update README.md 2024-04-15 20:53:15 +08:00
wood chen
bfbcfb7559
Update index.html 2024-03-22 21:00:09 +08:00
74a24d7426 Add gemini-pro model option
Add Google's gemini-pro conversational AI model as a selectable option
for the chatbot user interface. Provides users with access to an
additional high-quality dialogue model created by DeepMind, allowing
expanded choice.

Fixes #123
2023-12-18 03:55:11 +08:00
33c06b4fb7 Merge branch 'main' of
https://github.com/woodchen-ink/ChatGPT-Tailwind

Updated image links in README
2023-12-17 23:42:09 +08:00
5d35b854aa 1 2023-12-17 23:40:39 +08:00
25ff724634 update 2023-10-26 16:29:48 +08:00
da4872a8db update 2023-10-26 16:08:18 +08:00
wood chen
50bb227a04
Update README.md 2023-10-07 18:20:58 +08:00
wood chen
93d02d356b
Merge pull request #6 from woodchen-ink:woodchen-ink/issue5
新增支持模型,库改为使用staticfile,可以加快国内访问
2023-10-07 18:17:16 +08:00
af4bee0d29 新增支持模型,库改为使用staticfile,可以加快国内访问 2023-10-07 18:15:55 +08:00
2 changed files with 16 additions and 46 deletions

View File

@ -4,16 +4,11 @@
可以自定义修改模型参数不过请求方式都是openai接口 可以自定义修改模型参数不过请求方式都是openai接口
*练手页面,有问题请进群反馈*
Telegram交流群https://t.me/ai_cn2023
## 例子 ## 例子
![1691602575992.png](https://cdn-img.czl.net/2023/08/10/64d3cea9db3be.png) ![image](https://github.com/woodchen-ink/ChatGPT-Tailwind/assets/95951386/30f33fb7-5c45-4389-be41-4c9575695106)
![1691602613726.png](https://cdn-img.czl.net/2023/08/10/64d3cecf903b7.png)
## 使用方法 ## 使用方法

View File

@ -1,23 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-cn"> <html lang="zh-cmn-Hans">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>ChatGPT-Tailwind</title> <title>ChatGPT-Tailwind</title>
<meta name="viewport" <meta name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="shortcut icon" href="https://cdn-img-qiniu.czl.net/2023/08/03/64cb6db97b0bf.png"> <link rel="shortcut icon" href="https://i-cf.czl.net/r2/qiniu/2023/08/03/64cb6db97b0bf.png">
<link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/3.6.4/full.min.css" rel="stylesheet" type="text/css" /> <link href="https://cdnjs.cloudflare.com/ajax/libs/daisyui/4.12.14/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.1/markdown-it.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.2/markdown-it.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/styles/vs2015.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/vs2015.min.css" />
<style> <style>
body { body {
font-family: system-ui, -apple-system, "Microsoft YaHei", Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif !important; font-family: system-ui, -apple-system, "Microsoft YaHei", Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif !important;
} }
</style> </style>
<link href="https://cdn.czl.net/frame/tailwind/typography.css" rel="stylesheet" type="text/css"> <link href="https://i.czl.net/g-f/frame/prose.css" rel="stylesheet" type="text/css">
</head> </head>
<body class="pb-72 pt-20 h-full"> <body class="pb-72 pt-20 h-full">
@ -62,32 +61,8 @@
class="border-2 border-gray-300 bg-white h-10 px-2 rounded-lg text-sm flex-grow focus:outline-none select-primary" class="border-2 border-gray-300 bg-white h-10 px-2 rounded-lg text-sm flex-grow focus:outline-none select-primary"
id="model"> id="model">
<!-- your options here --> <!-- your options here -->
<option value="gpt-3.5-turbo">gpt-3.5-turbo</option> <option value="gpt-3.5-turbo">gpt-4o-mini</option>
<option value="gpt-3.5-turbo-0301">gpt-3.5-turbo-0301</option> <option value="gpt-3.5-turbo-16k">gpt-4o</option>
<option value="gpt-3.5-turbo-0613">gpt-3.5-turbo-0613</option>
<option value="gpt-3.5-turbo-16k">gpt-3.5-turbo-16k</option>
<option value="gpt-3.5-turbo-16k-0613">gpt-3.5-turbo-16k-0613</option>
<option value="gpt-4">gpt-4</option>
<option value="gpt-4-0301">gpt-4-0301</option>
<option value="gpt-4-0613">gpt-4-0613</option>
<option value="gpt-4-32k">gpt-4-32k</option>
<option value="gpt-4-32k-0613">gpt-4-32k-0613</option>
<option value="PaLM-2">PaLM-2</option>
<option value="ERINIE-Bot">ERNIE-Bot</option>
<option value="ERNIE-Bot-turbo">ERNIE-Bot-turbo</option>
<option value="BLOOMZ-7B">BLOOMZ-7B</option>
<option value="Embedding-V1">Embedding-V1</option>
<option value="chatglm_std">chatglm_std</option>
<option value="chatglm_lite">chatglm_lite</option>
<option value="chatglm_pro">chatglm_pro</option>
<option value="qwen-v1">qwen-v1</option>
<option value="qwen-plus-v1">qwen-plus-v1</option>
<option value="SparkDesk">SparkDesk</option>
<option value="360GPT_S2_V9">360GPT_S2_V9</option>
<option value="embedding-bert-512-v1">embedding-bert-512-v1</option>
<option value="embedding_s1_v1">embedding_s1_v1</option>
<option value="semantic_similarity_s1_v1">semantic_similarity_s1_v1</option>
<option value="360GPT_S2_V9.4">360GPT_S2_V9.4</option>
</select> </select>
</div> </div>
<div class="text-xs italics">*选择模型</div> <div class="text-xs italics">*选择模型</div>
@ -140,7 +115,7 @@
}); });
chatbox.append(`<div class="chat chat-end"><div class="chat-image avatar"> chatbox.append(`<div class="chat chat-end"><div class="chat-image avatar">
<div class="w-10 rounded-full"> <div class="w-10 rounded-full">
<img src="https://cdn-img.czl.net/2023/08/10/64d3b992cf86e.png" /> <img src="https://i-cf.czl.net/r2/2023/08/10/64d3b992cf86e.png" />
</div> </div>
</div> </div>
<div class="chat-header">You</div><div class="chat-bubble chat-bubble-info">${message}</div><div>`); <div class="chat-header">You</div><div class="chat-bubble chat-bubble-info">${message}</div><div>`);
@ -211,8 +186,8 @@
: 'chat-bubble-accent' : 'chat-bubble-accent'
const avatarURL = const avatarURL =
message.role === 'user' message.role === 'user'
? 'https://cdn-img.czl.net/2023/08/10/64d3b992cf86e.png' ? 'https://i-cf.czl.net/r2/2023/08/10/64d3b992cf86e.png'
: 'https://cdn-img.czl.net/2023/08/10/64d3b8c9819c7.png' : 'https://i-cf.czl.net/r2/2023/08/10/64d3b8c9819c7.png'
const chatHeader = message.role === 'user' ? 'You' : 'AI' const chatHeader = message.role === 'user' ? 'You' : 'AI'
let myID = 'codeSnippet-' + Date.now() let myID = 'codeSnippet-' + Date.now()
@ -303,7 +278,7 @@
} }
chatbox.append(`<div class="chat chat-start"><div class="chat-image avatar"> chatbox.append(`<div class="chat chat-start"><div class="chat-image avatar">
<div class="w-10 rounded-full"> <div class="w-10 rounded-full">
<img src="https://cdn-img.czl.net/2023/08/10/64d3b8c9819c7.png" /> <img src="https://i-cf.czl.net/r2/2023/08/10/64d3b8c9819c7.png" />
</div> </div>
</div> </div>
<div class="chat-header">AI</div><div class="chat-bubble chat-bubble-error prose prose-slate">Error: ${errorMessage}</div><div>`); <div class="chat-header">AI</div><div class="chat-bubble chat-bubble-error prose prose-slate">Error: ${errorMessage}</div><div>`);
@ -314,7 +289,7 @@
sendButton.removeClass('btn-error').addClass('btn-info'); sendButton.removeClass('btn-error').addClass('btn-info');
chatbox.append(`<div class="chat chat-start"><div class="chat-image avatar"> chatbox.append(`<div class="chat chat-start"><div class="chat-image avatar">
<div class="w-10 rounded-full"> <div class="w-10 rounded-full">
<img src="https://cdn-img.czl.net/2023/08/10/64d3b8c9819c7.png" /> <img src="https://i-cf.czl.net/r2/2023/08/10/64d3b8c9819c7.png" />
</div> </div>
</div> </div>
<div class="chat-header">AI</div><div class="chat-bubble chat-bubble-error prose prose-slate">Error: ${error.message}</div><div>`); <div class="chat-header">AI</div><div class="chat-bubble chat-bubble-error prose prose-slate">Error: ${error.message}</div><div>`);
@ -322,7 +297,7 @@
} }
}); });
</script> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js" defer></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/highlight.min.js" defer></script>
</body> </body>