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
8a0e95de
Commit
8a0e95de
authored
Sep 13, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chatbot api test
parent
3df61084
Pipeline
#20878
failed with stages
in 2 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
08-chat.js
src/js/08-chat.js
+15
-6
No files found.
src/js/08-chat.js
View file @
8a0e95de
...
...
@@ -174,12 +174,21 @@
docsType
:
docType
.
toLowerCase
(),
}
fetch
(
'https://182.162.100.161:13002/ask'
,
{
method
:
'POST'
,
headers
:
{
'Content-Type'
:
'application/json'
,
},
body
:
JSON
.
stringify
(
payload
),
// 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
(
'http://httpbin.org/get'
,
{
method
:
'GET'
,
})
.
then
((
response
)
=>
{
console
.
log
(
response
)
// response 확인 테스트
...
...
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