Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
1f272b30
Commit
1f272b30
authored
5 months ago
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rollback
parent
5016fa8c
Pipeline
#20893
passed with stages
in 3 minutes and 46 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
20 deletions
+11
-20
08-chat.js
src/js/08-chat.js
+11
-20
No files found.
src/js/08-chat.js
View file @
1f272b30
...
...
@@ -171,26 +171,17 @@
isLoading
=
true
// const payload = {
// question: message,
// docsType: docType.toLowerCase(),
// }
// fetch('https://182.162.100.161:13002/ask', {
// method: 'POST',
// headers: {
// 'Content-Type': 'application/json',
// },
// body: JSON.stringify(payload),
// })
// .then((response) => {
// console.log(response) // response 확인 테스트
// })
// .catch((error) => {
// console.error('Chatbot Error', error)
// })
fetch
(
'https://httpbin.org/get'
,
{
method
:
'GET'
,
const
payload
=
{
question
:
message
,
docsType
:
docType
.
toLowerCase
(),
}
fetch
(
'http://182.162.100.161:13002/ask'
,
{
method
:
'POST'
,
headers
:
{
'Content-Type'
:
'application/json'
,
},
body
:
JSON
.
stringify
(
payload
),
})
.
then
((
response
)
=>
{
console
.
log
(
response
)
// response 확인 테스트
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment