Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
714bdca3
"...resnet50_tensorflow.git" did not exist on "8d5c168450c28aa26b85197fa38a12644fba0b00"
Commit
714bdca3
authored
May 02, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
5613af03
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
14 deletions
+51
-14
backend/config.py
backend/config.py
+11
-0
backend/data/config.json
backend/data/config.json
+36
-10
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+2
-2
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+1
-1
src/lib/components/chat/Messages/Placeholder.svelte
src/lib/components/chat/Messages/Placeholder.svelte
+1
-1
No files found.
backend/config.py
View file @
714bdca3
...
...
@@ -367,6 +367,17 @@ DEFAULT_PROMPT_SUGGESTIONS = (
"title"
:
[
"Show me a code snippet"
,
"of a website's sticky header"
],
"content"
:
"Show me a code snippet of a website's sticky header in CSS and JavaScript."
,
},
{
"title"
:
[
"Explain options trading"
,
"if I'm familiar with buying and selling stocks"
,
],
"content"
:
"Explain options trading in simple terms if I'm familiar with buying and selling stocks."
,
},
{
"title"
:
[
"Overcome procrastination"
,
"give me tips"
],
"content"
:
"Could you start by asking me about instances when I procrastinate the most and then give me some suggestions to overcome it?"
,
},
]
)
...
...
backend/data/config.json
View file @
714bdca3
...
...
@@ -4,21 +4,47 @@
"default_locale"
:
"en-US"
,
"prompt_suggestions"
:
[
{
"title"
:
[
"Help me study"
,
"vocabulary for a college entrance exam"
],
"content"
:
"Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
"title"
:
[
"Help me study"
,
"vocabulary for a college entrance exam"
],
"content"
:
"Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
,
},
{
"title"
:
[
"Give me ideas"
,
"for what to do with my kids' art"
],
"content"
:
"What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."
"title"
:
[
"Give me ideas"
,
"for what to do with my kids' art"
],
"content"
:
"What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."
,
},
{
"title"
:
[
"Tell me a fun fact"
,
"about the Roman Empire"
],
"content"
:
"Tell me a random fun fact about the Roman Empire"
"title"
:
[
"Tell me a fun fact"
,
"about the Roman Empire"
],
"content"
:
"Tell me a random fun fact about the Roman Empire"
,
},
{
"title"
:
[
"Show me a code snippet"
,
"of a website's sticky header"
],
"content"
:
"Show me a code snippet of a website's sticky header in CSS and JavaScript."
}
"title"
:
[
"Show me a code snippet"
,
"of a website's sticky header"
],
"content"
:
"Show me a code snippet of a website's sticky header in CSS and JavaScript."
,
},
{
"title"
:
[
"Explain options trading"
,
"if I'm familiar with buying and selling stocks"
,
],
"content"
:
"Explain options trading in simple terms if I'm familiar with buying and selling stocks."
,
},
{
"title"
:
[
"Overcome procrastination"
,
"give me tips"
],
"content"
:
"Could you start by asking me about instances when I procrastinate the most and then give me some suggestions to overcome it?"
,
},
]
}
}
}
\ No newline at end of file
src/lib/components/chat/MessageInput.svelte
View file @
714bdca3
...
...
@@ -425,7 +425,7 @@
<div class="fixed bottom-0 {$showSidebar ? 'left-0 lg:left-[260px]' : 'left-0'} right-0">
<div class="w-full">
<div class=" px-2.5 -mb-0.5 mx-auto inset-x-0 bg-transparent flex justify-center">
<div class="flex flex-col max-w-
3
xl w-full">
<div class="flex flex-col max-w-
5
xl w-full">
<div class="relative">
{#if autoScroll === false && messages.length > 0}
<div class=" absolute -top-12 left-0 right-0 flex justify-center">
...
...
@@ -497,7 +497,7 @@
</div>
</div>
<div class="bg-white dark:bg-gray-900">
<div class="max-w-
3
xl px-2.5 mx-auto inset-x-0">
<div class="max-w-
6
xl px-2.5
lg:px-16
mx-auto inset-x-0">
<div class=" pb-2">
<input
bind:this={filesInputElement}
...
...
src/lib/components/chat/Messages.svelte
View file @
714bdca3
...
...
@@ -267,7 +267,7 @@
<div
class="flex flex-col justify-between px-5 mb-3 {$settings?.fullScreenMode ?? null
? 'max-w-full'
: 'max-w-
3
xl'} mx-auto rounded-lg group"
: 'max-w-
4
xl'} mx-auto rounded-lg group"
>
{#if message.role === 'user'}
<UserMessage
...
...
src/lib/components/chat/Messages/Placeholder.svelte
View file @
714bdca3
...
...
@@ -32,7 +32,7 @@
</script>
{#key mounted}
<div class="m-auto w-full max-w-
3
xl px-8 lg:px-
0
pb-16">
<div class="m-auto w-full max-w-
6
xl px-8 lg:px-
24
pb-16">
<div class="flex justify-start">
<div class="flex -space-x-4 mb-1" in:fade={{ duration: 200 }}>
{#each models as model, modelIdx}
...
...
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