Skip to content

Commit

Permalink
update openai.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kechigon committed Nov 15, 2024
1 parent 8484083 commit e041ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ai/openai.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (ai *OpenAI) GetResponse(prompt *Prompt) (string, error) {
// Create a chat request with the prompt
messages := []azopenai.ChatRequestMessageClassification{
&azopenai.ChatRequestSystemMessage{
Content: &prompt.SystemPrompt,
Content: azopenai.NewChatRequestSystemMessageContent(prompt.SystemPrompt),
},
&azopenai.ChatRequestUserMessage{
Content: azopenai.NewChatRequestUserMessageContent(user_prompt),
Expand Down

0 comments on commit e041ff4

Please sign in to comment.