fix: logprobs in vision model not permit
This commit is contained in:
@@ -219,7 +219,6 @@ class Chat {
|
|||||||
model: this.model,
|
model: this.model,
|
||||||
messages,
|
messages,
|
||||||
stream,
|
stream,
|
||||||
logprobs,
|
|
||||||
presence_penalty: this.presence_penalty,
|
presence_penalty: this.presence_penalty,
|
||||||
frequency_penalty: this.frequency_penalty,
|
frequency_penalty: this.frequency_penalty,
|
||||||
};
|
};
|
||||||
@@ -237,6 +236,9 @@ class Chat {
|
|||||||
type: "json_object",
|
type: "json_object",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (logprobs) {
|
||||||
|
body["logprobs"] = true;
|
||||||
|
}
|
||||||
|
|
||||||
// parse toolsString to function call format
|
// parse toolsString to function call format
|
||||||
const ts = this.toolsString.trim();
|
const ts = this.toolsString.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user