Skip to content

Commit

Permalink
use messages directly
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Oct 7, 2024
1 parent e7eb0d0 commit e5088d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/Prompt_Versioning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"\n",
"response = completion(\n",
" model=\"gpt-3.5-turbo\",\n",
" messages=[{\"content\": registry.get(name=\"blog_prompt\", version=\"gpt-3.5-turbo\").text(), \"role\": \"user\"}],\n",
" messages=registry.get(name=\"blog_prompt\", version=\"gpt-3.5-turbo\").chat_messages(),\n",
")"
]
}
Expand Down

0 comments on commit e5088d0

Please sign in to comment.