Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
804c1fe9
authored
2023-11-29 06:43:35 +0800
by
RSA
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
28823_chatbot_vuzo_link
1 parent
34d94fa0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
client/public/index.html
client/src/App.js
client/src/SideMenu.js
client/src/index.css
client/public/index.html
View file @
804c1fe
...
...
@@ -47,4 +47,11 @@
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
<script
src=
"https://dev.start.ai-pro.org/snippets/com.global.vuzo.js"
></script>
<script>
window
.
onload
=
function
()
{
displayVuzo
();
displayGooglePlay
();
};
</script>
</html>
...
...
client/src/App.js
View file @
804c1fe
...
...
@@ -94,7 +94,7 @@ function App() {
setChatLog
(
prevChatLog
=>
[...
prevChatLog
,
userMessage
]);
var
messages
=
chatLogNew
.
map
((
message
)
=>
{
if
(
message
.
user
!==
'me'
)
return
message
.
message
}).
join
(
"\n"
)
if
(
currentModel
==
GPTTurbo
||
currentModel
==
GPTTurbo0301
)
{
if
(
currentModel
==
=
GPTTurbo
||
currentModel
=
==
GPTTurbo0301
)
{
// "gpt-3.5-turbo"
let
chatLogTurboNew
=
[...
chatLogTurbo
,
{
role
:
"user"
,
content
:
chatInput
}];
setChatLogTurbo
(
chatLogTurboNew
);
...
...
client/src/SideMenu.js
View file @
804c1fe
...
...
@@ -74,6 +74,10 @@ const SideMenu = ({
<
/span
>
<
ExportButton
label
=
"Export Conversation"
filename
=
"Chat-Bot-Plus"
/>
<
/div
>
<
div
className
=
"vuzo_container"
>
<
div
className
=
"vuzo_img"
><
/div
>
<
div
className
=
"vuzo_gplay"
><
/div
>
<
/div
>
<
/aside
>
);
...
...
client/src/index.css
View file @
804c1fe
...
...
@@ -25,6 +25,18 @@ code {
display
:
none
;
}
.vuzo_container
{
text-align
:
center
;
padding
:
2px
;
display
:
inline-flex
;
margin
:
0
auto
;
bottom
:
0
;
position
:
absolute
;
}
.vuzo_img
,
.vuzo_gpay
,
.vuzo_qr
{
padding
:
0
2px
;
}
@media
screen
and
(
max-width
:
640px
)
{
.export-button-mobile
{
display
:
flex
!important
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment