fix: old version logprobs to true

This commit is contained in:
2024-02-23 19:01:13 +08:00
parent c9c51a85cf
commit 2224d2e5ed
2 changed files with 2 additions and 0 deletions

View File

@@ -246,6 +246,7 @@ export function AddImage({
token: 65,
example: false,
audio: null,
logprobs: null,
});
setChatStore({ ...chatStore });

View File

@@ -217,6 +217,7 @@ export function App() {
message.token = calculate_token_length(message.content);
}
if (ret.cost === undefined) ret.cost = 0;
if (ret.logprobs === undefined) ret.logprobs = true;
return ret;
};