Release v0.6.5 (#1391)

*  Release v0.6.5

* fix(ci): use dynamic currentDateString
This commit is contained in:
Danny Avila 2023-12-19 01:09:42 -05:00 committed by GitHub
parent 8d563d61f1
commit 5b28362282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 11 deletions

View file

@ -569,8 +569,15 @@ describe('OpenAIClient', () => {
expect(getCompletion).toHaveBeenCalled();
expect(getCompletion.mock.calls.length).toBe(1);
const currentDateString = new Date().toLocaleDateString('en-us', {
year: 'numeric',
month: 'long',
day: 'numeric',
});
expect(getCompletion.mock.calls[0][0]).toBe(
'||>Instructions:\nYou are ChatGPT, a large language model trained by OpenAI. Respond conversationally.\nCurrent date: December 18, 2023\n\n||>User:\nHi mom!\n||>Assistant:\n',
`||>Instructions:\nYou are ChatGPT, a large language model trained by OpenAI. Respond conversationally.\nCurrent date: ${currentDateString}\n\n||>User:\nHi mom!\n||>Assistant:\n`,
);
expect(fetchEventSource).toHaveBeenCalled();

View file

@ -1,6 +1,6 @@
{
"name": "@librechat/backend",
"version": "0.6.1",
"version": "0.6.5",
"description": "",
"scripts": {
"start": "echo 'please run this from the root directory'",