featued model
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -8,6 +8,7 @@
|
|
8 |
handleStreamingResponse,
|
9 |
handleNonStreamingResponse,
|
10 |
isSystemPromptSupported,
|
|
|
11 |
} from "./inferencePlaygroundUtils";
|
12 |
|
13 |
import { onDestroy } from "svelte";
|
@@ -24,7 +25,7 @@
|
|
24 |
const startMessageSystem: ChatCompletionInputMessage = { role: "system", content: "" };
|
25 |
|
26 |
let conversation: Conversation = {
|
27 |
-
model: models[0],
|
28 |
config: defaultGenerationConfig,
|
29 |
messages: [{ ...startMessageUser }],
|
30 |
systemMessage: startMessageSystem,
|
|
|
8 |
handleStreamingResponse,
|
9 |
handleNonStreamingResponse,
|
10 |
isSystemPromptSupported,
|
11 |
+
FEATUED_MODELS_IDS,
|
12 |
} from "./inferencePlaygroundUtils";
|
13 |
|
14 |
import { onDestroy } from "svelte";
|
|
|
25 |
const startMessageSystem: ChatCompletionInputMessage = { role: "system", content: "" };
|
26 |
|
27 |
let conversation: Conversation = {
|
28 |
+
model: models.find(m => FEATUED_MODELS_IDS.includes(m.id)) ?? models[0],
|
29 |
config: defaultGenerationConfig,
|
30 |
messages: [{ ...startMessageUser }],
|
31 |
systemMessage: startMessageSystem,
|