fix: logprobs in vision model not permit
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user