Commit
·
4250fa9
1
Parent(s):
17b565d
pre commit lint
Browse files- app/components/chat/ExamplePrompts.tsx +8 -11
- app/utils/constants.ts +12 -4
- package-lock.json +9 -6
- pnpm-lock.yaml +10 -8
app/components/chat/ExamplePrompts.tsx
CHANGED
@@ -10,16 +10,13 @@ const EXAMPLE_PROMPTS = [
|
|
10 |
|
11 |
export function ExamplePrompts(sendMessage?: { (event: React.UIEvent, messageInput?: string): void | undefined }) {
|
12 |
return (
|
13 |
-
<div
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
animation: '.25s ease-out 0s 1 _fade-and-move-in_g2ptj_1 forwards',
|
21 |
-
}}
|
22 |
-
>
|
23 |
{EXAMPLE_PROMPTS.map((examplePrompt, index: number) => {
|
24 |
return (
|
25 |
<button
|
@@ -27,7 +24,7 @@ export function ExamplePrompts(sendMessage?: { (event: React.UIEvent, messageInp
|
|
27 |
onClick={(event) => {
|
28 |
sendMessage?.(event, examplePrompt.text);
|
29 |
}}
|
30 |
-
|
31 |
>
|
32 |
{examplePrompt.text}
|
33 |
</button>
|
|
|
10 |
|
11 |
export function ExamplePrompts(sendMessage?: { (event: React.UIEvent, messageInput?: string): void | undefined }) {
|
12 |
return (
|
13 |
+
<div id="examples" className="relative flex flex-col gap-9 w-full max-w-3xl mx-auto flex justify-center mt-6">
|
14 |
+
<div
|
15 |
+
className="flex flex-wrap justify-center gap-2"
|
16 |
+
style={{
|
17 |
+
animation: '.25s ease-out 0s 1 _fade-and-move-in_g2ptj_1 forwards',
|
18 |
+
}}
|
19 |
+
>
|
|
|
|
|
|
|
20 |
{EXAMPLE_PROMPTS.map((examplePrompt, index: number) => {
|
21 |
return (
|
22 |
<button
|
|
|
24 |
onClick={(event) => {
|
25 |
sendMessage?.(event, examplePrompt.text);
|
26 |
}}
|
27 |
+
className="border border-bolt-elements-borderColor rounded-full bg-gray-50 hover:bg-gray-100 dark:bg-gray-950 dark:hover:bg-gray-900 text-bolt-elements-textSecondary hover:text-bolt-elements-textPrimary px-3 py-1 text-xs transition-theme"
|
28 |
>
|
29 |
{examplePrompt.text}
|
30 |
</button>
|
app/utils/constants.ts
CHANGED
@@ -263,8 +263,12 @@ const PROVIDER_LIST: ProviderInfo[] = [
|
|
263 |
{
|
264 |
name: 'Together',
|
265 |
staticModels: [
|
266 |
-
|
267 |
-
|
|
|
|
|
|
|
|
|
268 |
{
|
269 |
name: 'meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo',
|
270 |
label: 'meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo',
|
@@ -272,8 +276,12 @@ const PROVIDER_LIST: ProviderInfo[] = [
|
|
272 |
maxTokenAllowed: 8000,
|
273 |
},
|
274 |
|
275 |
-
{
|
276 |
-
|
|
|
|
|
|
|
|
|
277 |
],
|
278 |
getApiKeyLink: 'https://api.together.xyz/settings/api-keys',
|
279 |
},
|
|
|
263 |
{
|
264 |
name: 'Together',
|
265 |
staticModels: [
|
266 |
+
{
|
267 |
+
name: 'Qwen/Qwen2.5-Coder-32B-Instruct',
|
268 |
+
label: 'Qwen/Qwen2.5-Coder-32B-Instruct',
|
269 |
+
provider: 'Together',
|
270 |
+
maxTokenAllowed: 8000,
|
271 |
+
},
|
272 |
{
|
273 |
name: 'meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo',
|
274 |
label: 'meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo',
|
|
|
276 |
maxTokenAllowed: 8000,
|
277 |
},
|
278 |
|
279 |
+
{
|
280 |
+
name: 'mistralai/Mixtral-8x7B-Instruct-v0.1',
|
281 |
+
label: 'Mixtral 8x7B Instruct',
|
282 |
+
provider: 'Together',
|
283 |
+
maxTokenAllowed: 8192,
|
284 |
+
},
|
285 |
],
|
286 |
getApiKeyLink: 'https://api.together.xyz/settings/api-keys',
|
287 |
},
|
package-lock.json
CHANGED
@@ -8728,9 +8728,9 @@
|
|
8728 |
"license": "BSD-2-Clause"
|
8729 |
},
|
8730 |
"node_modules/globals": {
|
8731 |
-
"version": "15.
|
8732 |
-
"resolved": "https://registry.npmjs.org/globals/-/globals-15.
|
8733 |
-
"integrity": "sha512-
|
8734 |
"dev": true,
|
8735 |
"license": "MIT",
|
8736 |
"engines": {
|
@@ -8835,11 +8835,14 @@
|
|
8835 |
}
|
8836 |
},
|
8837 |
"node_modules/has-proto": {
|
8838 |
-
"version": "1.0
|
8839 |
-
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.
|
8840 |
-
"integrity": "sha512-
|
8841 |
"devOptional": true,
|
8842 |
"license": "MIT",
|
|
|
|
|
|
|
8843 |
"engines": {
|
8844 |
"node": ">= 0.4"
|
8845 |
},
|
|
|
8728 |
"license": "BSD-2-Clause"
|
8729 |
},
|
8730 |
"node_modules/globals": {
|
8731 |
+
"version": "15.13.0",
|
8732 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-15.13.0.tgz",
|
8733 |
+
"integrity": "sha512-49TewVEz0UxZjr1WYYsWpPrhyC/B/pA8Bq0fUmet2n+eR7yn0IvNzNaoBwnK6mdkzcN+se7Ez9zUgULTz2QH4g==",
|
8734 |
"dev": true,
|
8735 |
"license": "MIT",
|
8736 |
"engines": {
|
|
|
8835 |
}
|
8836 |
},
|
8837 |
"node_modules/has-proto": {
|
8838 |
+
"version": "1.1.0",
|
8839 |
+
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.1.0.tgz",
|
8840 |
+
"integrity": "sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==",
|
8841 |
"devOptional": true,
|
8842 |
"license": "MIT",
|
8843 |
+
"dependencies": {
|
8844 |
+
"call-bind": "^1.0.7"
|
8845 |
+
},
|
8846 |
"engines": {
|
8847 |
"node": ">= 0.4"
|
8848 |
},
|
pnpm-lock.yaml
CHANGED
@@ -3331,8 +3331,8 @@ packages:
|
|
3331 |
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
|
3332 |
engines: {node: '>=18'}
|
3333 |
|
3334 |
-
globals@15.
|
3335 |
-
resolution: {integrity: sha512-
|
3336 |
engines: {node: '>=18'}
|
3337 |
|
3338 | |
@@ -3363,8 +3363,8 @@ packages:
|
|
3363 | |
3364 |
resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
|
3365 |
|
3366 |
-
[email protected]
|
3367 |
-
resolution: {integrity: sha512-
|
3368 |
engines: {node: '>= 0.4'}
|
3369 |
|
3370 | |
@@ -6117,7 +6117,7 @@ snapshots:
|
|
6117 |
eslint-config-prettier: 9.1.0([email protected]([email protected]))
|
6118 |
eslint-plugin-jsonc: 2.18.2([email protected]([email protected]))
|
6119 |
eslint-plugin-prettier: 5.2.1(@types/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])
|
6120 |
-
globals: 15.
|
6121 |
typescript-eslint: 8.16.0([email protected]([email protected]))([email protected])
|
6122 |
transitivePeerDependencies:
|
6123 |
- '@eslint/json'
|
@@ -9016,7 +9016,7 @@ snapshots:
|
|
9016 |
dependencies:
|
9017 |
es-errors: 1.3.0
|
9018 |
function-bind: 1.1.2
|
9019 |
-
has-proto: 1.0
|
9020 |
has-symbols: 1.0.3
|
9021 |
hasown: 2.0.2
|
9022 |
|
@@ -9058,7 +9058,7 @@ snapshots:
|
|
9058 |
|
9059 | |
9060 |
|
9061 |
-
globals@15.
|
9062 |
|
9063 | |
9064 |
|
@@ -9089,7 +9089,9 @@ snapshots:
|
|
9089 |
dependencies:
|
9090 |
es-define-property: 1.0.0
|
9091 |
|
9092 |
-
[email protected]
|
|
|
|
|
9093 |
|
9094 | |
9095 |
|
|
|
3331 |
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
|
3332 |
engines: {node: '>=18'}
|
3333 |
|
3334 |
+
globals@15.13.0:
|
3335 |
+
resolution: {integrity: sha512-49TewVEz0UxZjr1WYYsWpPrhyC/B/pA8Bq0fUmet2n+eR7yn0IvNzNaoBwnK6mdkzcN+se7Ez9zUgULTz2QH4g==}
|
3336 |
engines: {node: '>=18'}
|
3337 |
|
3338 | |
|
|
3363 | |
3364 |
resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
|
3365 |
|
3366 |
+
has-proto@1.1.0:
|
3367 |
+
resolution: {integrity: sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==}
|
3368 |
engines: {node: '>= 0.4'}
|
3369 |
|
3370 | |
|
|
6117 |
eslint-config-prettier: 9.1.0([email protected]([email protected]))
|
6118 |
eslint-plugin-jsonc: 2.18.2([email protected]([email protected]))
|
6119 |
eslint-plugin-prettier: 5.2.1(@types/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])
|
6120 |
+
globals: 15.13.0
|
6121 |
typescript-eslint: 8.16.0([email protected]([email protected]))([email protected])
|
6122 |
transitivePeerDependencies:
|
6123 |
- '@eslint/json'
|
|
|
9016 |
dependencies:
|
9017 |
es-errors: 1.3.0
|
9018 |
function-bind: 1.1.2
|
9019 |
+
has-proto: 1.1.0
|
9020 |
has-symbols: 1.0.3
|
9021 |
hasown: 2.0.2
|
9022 |
|
|
|
9058 |
|
9059 | |
9060 |
|
9061 |
+
globals@15.13.0: {}
|
9062 |
|
9063 | |
9064 |
|
|
|
9089 |
dependencies:
|
9090 |
es-define-property: 1.0.0
|
9091 |
|
9092 |
+
has-proto@1.1.0:
|
9093 |
+
dependencies:
|
9094 |
+
call-bind: 1.0.7
|
9095 |
|
9096 | |
9097 |
|