Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
archibald-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
William Faircloth
archibald-ui
Commits
410120aa
Commit
410120aa
authored
4 months ago
by
William Faircloth
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
4d9c5aa9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#6035
failed
4 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/routes/+page.server.ts
+2
-0
2 additions, 0 deletions
src/routes/+page.server.ts
svelte.config.js
+4
-1
4 additions, 1 deletion
svelte.config.js
with
6 additions
and
1 deletion
src/routes/+page.server.ts
+
2
−
0
View file @
410120aa
...
...
@@ -8,6 +8,7 @@ export const actions = {
const
formData
=
await
event
.
request
.
formData
();
if
(
!
formData
.
has
(
'
question
'
))
return
error
(
400
,
'
No question provided
'
);
const
question
=
formData
.
get
(
'
question
'
)?.
toString
()
||
'
Something went wrong!
'
;
console
.
log
(
"
Recieved question:
"
+
question
);
const
useContext
=
formData
.
get
(
'
useContext
'
)?.
toString
()
===
'
on
'
||
false
;
const
rawContext
:
Context
=
JSON
.
parse
(
formData
.
get
(
'
context
'
)?.
toString
()
||
''
)
||
[];
...
...
@@ -30,6 +31,7 @@ export const actions = {
});
}
console
.
log
(
"
Asking archi with question:
"
+
question
);
const
response
=
await
askArchi
(
question
,
context
);
context
=
[...
rawContext
,
{
question
,
response
}];
...
...
This diff is collapsed.
Click to expand it.
svelte.config.js
+
4
−
1
View file @
410120aa
...
...
@@ -11,7 +11,10 @@ const config = {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter
:
adapter
()
adapter
:
adapter
(),
csrf
:
{
checkOrigin
:
false
}
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment