mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update language-inference-engine.js
This commit is contained in:
parent
408e98e46b
commit
3cf7f6c07c
|
@ -329,7 +329,9 @@ var ENGINE_PROFILES = {
|
||||||
"availableModels": [
|
"availableModels": [
|
||||||
"openchat-3.5-0106",
|
"openchat-3.5-0106",
|
||||||
"qwen1.5-14b-chat-awq",
|
"qwen1.5-14b-chat-awq",
|
||||||
"gemma-7b-it"
|
"gemma-7b-it",
|
||||||
|
"una-cybertron-7b-v2-bf16",
|
||||||
|
"starling-lm-7b-beta"
|
||||||
],
|
],
|
||||||
"headers": {
|
"headers": {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
@ -373,12 +375,13 @@ function LanguageInferenceEngine() {
|
||||||
|
|
||||||
this.setProvider = function(provider) {
|
this.setProvider = function(provider) {
|
||||||
this.provider = provider;
|
this.provider = provider;
|
||||||
|
|
||||||
if (this.provider in ENGINE_PROFILES) {
|
if (this.provider in ENGINE_PROFILES) {
|
||||||
this.engineProfile = ENGINE_PROFILES[provider];
|
this.engineProfile = ENGINE_PROFILES[provider];
|
||||||
this.type = this.engineProfile.type;
|
this.type = this.engineProfile.type;
|
||||||
this.model = this.engineProfile.availableModels[0];
|
this.model = this.engineProfile.availableModels[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user