Skip to content

Commit

Permalink
chore: update version and normalize version (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
eulixir authored Apr 21, 2024
1 parent 63370be commit d24a84f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## 1.1.1

### Fixed

- nomalize response (#002)

## 1.1.0

### Added
Expand Down
6 changes: 4 additions & 2 deletions api/domain/services/guessAnimeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export async function guessAnimeService(incomingMessages: Message[]) {
model: 'gpt-4-turbo',
})

const content = choices[0].message.content!.replace(/[/*\\]/g, '')

const response: Message = {
role: 'assistant',
content: choices[0].message.content,
content,
}

return [...messages, response]
return [...incomingMessages, response]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "animator",
"version": "1.1.0",
"version": "1.1.1",
"description": "A way to find an anime that you forget the name",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit d24a84f

Please sign in to comment.