We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aab2c8 + 0290822 commit 338ba83Copy full SHA for 338ba83
core/llm/llms/Vllm.ts
@@ -6,7 +6,10 @@ class Vllm extends OpenAI {
6
static providerName = "vllm";
7
constructor(options: LLMOptions) {
8
super(options);
9
- this._setupCompletionOptions();
+
10
+ if (options.model === "AUTODETECT") {
11
+ this._setupCompletionOptions();
12
+ }
13
}
14
15
private _setupCompletionOptions() {
@@ -22,7 +25,7 @@ class Vllm extends OpenAI {
22
25
return;
23
26
24
27
const json = await response.json();
- const data = json.data;
28
+ const data = json.data[0];
29
this.model = data.id;
30
this.contextLength = Number.parseInt(data.max_model_len);
31
});
0 commit comments