diff --git a/src/addImage.tsx b/src/addImage.tsx index 35c1382..a5fb670 100644 --- a/src/addImage.tsx +++ b/src/addImage.tsx @@ -246,6 +246,7 @@ export function AddImage({ token: 65, example: false, audio: null, + logprobs: null, }); setChatStore({ ...chatStore }); diff --git a/src/app.tsx b/src/app.tsx index 5533d31..6342f58 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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; };