Skip to content

Commit

Permalink
fix: reformat files by following new Prettier updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rainx committed Nov 14, 2023
1 parent 36f0467 commit 6ad24f6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/service/openai.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,10 @@ export class OpenAIService {

if (OPENAI_CHAT_MODEL.startsWith('gpt-3.5-turbo')) {
// GPT 3.5's system prompt doesn't work very well.
chatMessages[
chatMessages.length - 1
].content = `${OPENAI_ARTIST_CHAT_SYSTEM_PROMPT}The following is the user message: ${chatMessages[
chatMessages.length - 1
].content?.toString()}`;
chatMessages[chatMessages.length - 1].content =
`${OPENAI_ARTIST_CHAT_SYSTEM_PROMPT}The following is the user message: ${chatMessages[
chatMessages.length - 1
].content?.toString()}`;
} else {
chatMessages.unshift({
role: 'system',
Expand Down

0 comments on commit 6ad24f6

Please sign in to comment.