mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Update geminiChat.ts (#1681)
Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
@@ -89,7 +89,7 @@ function validateHistory(history: Content[]) {
|
|||||||
* @remarks
|
* @remarks
|
||||||
* The model may sometimes generate invalid or empty contents(e.g., due to safty
|
* The model may sometimes generate invalid or empty contents(e.g., due to safty
|
||||||
* filters or recitation). Extracting valid turns from the history
|
* filters or recitation). Extracting valid turns from the history
|
||||||
* ensures that subsequent requests could be accpeted by the model.
|
* ensures that subsequent requests could be accepted by the model.
|
||||||
*/
|
*/
|
||||||
function extractCuratedHistory(comprehensiveHistory: Content[]): Content[] {
|
function extractCuratedHistory(comprehensiveHistory: Content[]): Content[] {
|
||||||
if (comprehensiveHistory === undefined || comprehensiveHistory.length === 0) {
|
if (comprehensiveHistory === undefined || comprehensiveHistory.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user