Skip to content

Commit

Permalink
✨ Release v0.6.5 (danny-avila#1391)
Browse files Browse the repository at this point in the history
* ✨ Release v0.6.5

* fix(ci): use dynamic currentDateString
  • Loading branch information
danny-avila authored Dec 19, 2023
1 parent c694e6a commit 9f34ce7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion app/clients/specs/OpenAIClient.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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'",
Expand Down

0 comments on commit 9f34ce7

Please sign in to comment.