fix: old version logprobs to true
This commit is contained in:
@@ -246,6 +246,7 @@ export function AddImage({
|
|||||||
token: 65,
|
token: 65,
|
||||||
example: false,
|
example: false,
|
||||||
audio: null,
|
audio: null,
|
||||||
|
logprobs: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
setChatStore({ ...chatStore });
|
setChatStore({ ...chatStore });
|
||||||
|
|||||||
@@ -217,6 +217,7 @@ export function App() {
|
|||||||
message.token = calculate_token_length(message.content);
|
message.token = calculate_token_length(message.content);
|
||||||
}
|
}
|
||||||
if (ret.cost === undefined) ret.cost = 0;
|
if (ret.cost === undefined) ret.cost = 0;
|
||||||
|
if (ret.logprobs === undefined) ret.logprobs = true;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user