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
a5bb9937
authored
2023-02-13 12:40:33 +0800
by
RSA
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
wip
1 parent
044faa07
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
client/src/App.js
client/src/ChatBox.js
client/src/suggestedOptions.js
client/src/App.js
View file @
a5bb993
...
...
@@ -122,6 +122,7 @@ function App() {
temperature
=
{
temperature
}
clearChat
=
{
clearChat
}
/
>
<
ChatBox
chatInput
=
{
chatInput
}
chatLog
=
{
chatLog
}
...
...
client/src/ChatBox.js
View file @
a5bb993
...
...
@@ -3,6 +3,7 @@
// Primary Chat Window
const
ChatBox
=
({
chatLog
,
setChatInput
,
handleSubmit
,
chatInput
})
=>
<
section
className
=
"chatbox"
>
<
SuggestedOptions
/>
<
div
className
=
"chat-log"
>
{
chatLog
.
map
((
message
,
index
)
=>
(
<
ChatMessage
key
=
{
index
}
message
=
{
message
}
/
>
...
...
client/src/suggestedOptions.js
0 → 100644
View file @
a5bb993
const
SuggestedOptions
=
()
=>
(
<
div
>
<
h1
>
Welcome
to
ChatGPT
Clone
<
/h1
>
<
p
>
This
chatbot
is
capable
of
answering
questions
and
generating
text
based
on
the
input
you
provide
.
<
/p
>
<
h2
>
Examples
<
/h2
>
<
ul
>
<
li
>
What
is
the
capital
of
France
?
<
/li
>
<
li
>
Generate
a
poem
about
love
<
/li
>
<
li
>
What
is
the
most
populous
country
in
the
world
?
<
/li
>
<
/ul
>
<
h2
>
Capabilities
<
/h2
>
<
ul
>
<
li
>
Answering
questions
<
/li
>
<
li
>
Generating
text
<
/li
>
<
li
>
Providing
information
on
a
variety
of
topics
<
/li
>
<
/ul
>
<
h2
>
Limitations
<
/h2
>
<
ul
>
<
li
>
The
chatbot
may
not
have
the
latest
information
<
/li
>
<
li
>
The
chatbot
may
not
be
able
to
answer
all
questions
<
/li
>
<
li
>
The
chatbot
may
not
provide
information
in
the
desired
format
<
/li
>
<
/ul
>
<
/div
>
);
export
default
SuggestedOptions
;
\ No newline at end of file
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