Skip to content

Commit

Permalink
disable cache on tgi endpoint (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Nov 20, 2023
1 parent e3af794 commit dd4c436
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/lib/server/endpoints/tgi/endpointTgi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ export function endpointTgi({
id: conversation._id,
});

return textGenerationStream({
parameters: { ...model.parameters, return_full_text: false },
model: url,
inputs: prompt,
accessToken,
});
return textGenerationStream(
{
parameters: { ...model.parameters, return_full_text: false },
model: url,
inputs: prompt,
accessToken,
},
{ use_cache: false }
);
};
}

Expand Down

0 comments on commit dd4c436

Please sign in to comment.