Skip to content

Commit

Permalink
ihp-openai: Added missing assistantMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Mar 13, 2024
1 parent a9c1857 commit 042b091
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ihp-openai/IHP/OpenAI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ userMessage content = Message { role = UserRole, content }
systemMessage :: Text -> Message
systemMessage content = Message { role = SystemRole, content }

assistantMessage :: Text -> Message
assistantMessage content = Message { role = AssistantRole, content }

newCompletionRequest :: CompletionRequest
newCompletionRequest = CompletionRequest
{ prompt = ""
Expand Down

0 comments on commit 042b091

Please sign in to comment.