Spaces:
Sleeping
Sleeping
update providers
Browse files- src/components/ask-ai/ask-ai.tsx +4 -4
- utils/providers.js +1 -1
src/components/ask-ai/ask-ai.tsx
CHANGED
|
@@ -178,13 +178,12 @@ function AskAI({
|
|
| 178 |
}
|
| 179 |
}, [isThinking]);
|
| 180 |
|
|
|
|
|
|
|
| 181 |
return (
|
| 182 |
<div className="bg-neutral-800 border border-neutral-700 rounded-lg ring-[5px] focus-within:ring-sky-500/50 ring-transparent z-10 absolute bottom-3 left-3 w-[calc(100%-20px)] group">
|
| 183 |
{think && (
|
| 184 |
-
<div
|
| 185 |
-
ref={refThink}
|
| 186 |
-
className="w-full border-b border-neutral-700 relative overflow-hidden"
|
| 187 |
-
>
|
| 188 |
<header
|
| 189 |
className="flex items-center justify-between px-5 py-2.5 group hover:bg-neutral-600/20 transition-colors duration-200 cursor-pointer"
|
| 190 |
onClick={() => {
|
|
@@ -204,6 +203,7 @@ function AskAI({
|
|
| 204 |
/>
|
| 205 |
</header>
|
| 206 |
<main
|
|
|
|
| 207 |
className={classNames(
|
| 208 |
"overflow-y-auto transition-all duration-200 ease-in-out",
|
| 209 |
{
|
|
|
|
| 178 |
}
|
| 179 |
}, [isThinking]);
|
| 180 |
|
| 181 |
+
// TODO: auto scroll is not working properly, fix it
|
| 182 |
+
|
| 183 |
return (
|
| 184 |
<div className="bg-neutral-800 border border-neutral-700 rounded-lg ring-[5px] focus-within:ring-sky-500/50 ring-transparent z-10 absolute bottom-3 left-3 w-[calc(100%-20px)] group">
|
| 185 |
{think && (
|
| 186 |
+
<div className="w-full border-b border-neutral-700 relative overflow-hidden">
|
|
|
|
|
|
|
|
|
|
| 187 |
<header
|
| 188 |
className="flex items-center justify-between px-5 py-2.5 group hover:bg-neutral-600/20 transition-colors duration-200 cursor-pointer"
|
| 189 |
onClick={() => {
|
|
|
|
| 203 |
/>
|
| 204 |
</header>
|
| 205 |
<main
|
| 206 |
+
ref={refThink}
|
| 207 |
className={classNames(
|
| 208 |
"overflow-y-auto transition-all duration-200 ease-in-out",
|
| 209 |
{
|
utils/providers.js
CHANGED
|
@@ -31,7 +31,7 @@ export const MODELS = [
|
|
| 31 |
value: "deepseek-ai/DeepSeek-V3-0324",
|
| 32 |
label: "DeepSeek V3 O324",
|
| 33 |
providers: ["fireworks-ai", "nebius", "sambanova", "novita", "hyperbolic"],
|
| 34 |
-
autoProvider: "
|
| 35 |
},
|
| 36 |
{
|
| 37 |
value: "deepseek-ai/DeepSeek-R1-0528",
|
|
|
|
| 31 |
value: "deepseek-ai/DeepSeek-V3-0324",
|
| 32 |
label: "DeepSeek V3 O324",
|
| 33 |
providers: ["fireworks-ai", "nebius", "sambanova", "novita", "hyperbolic"],
|
| 34 |
+
autoProvider: "novita",
|
| 35 |
},
|
| 36 |
{
|
| 37 |
value: "deepseek-ai/DeepSeek-R1-0528",
|