fix: logprobs in vision model not permit

This commit is contained in:
2024-02-24 09:47:44 +08:00
parent 24aba9ae07
commit 74b60b4e95

View File

@@ -219,7 +219,6 @@ class Chat {
model: this.model,
messages,
stream,
logprobs,
presence_penalty: this.presence_penalty,
frequency_penalty: this.frequency_penalty,
};
@@ -237,6 +236,9 @@ class Chat {
type: "json_object",
};
}
if (logprobs) {
body["logprobs"] = true;
}
// parse toolsString to function call format
const ts = this.toolsString.trim();