Skip to content

Commit

Permalink
improve OpenAI assistant behavior prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
baronruk committed May 20, 2024
1 parent b4e9bfd commit acd8d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions film_suggestions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def recommendations(request, signed_data):
response = client.chat.completions.create(
model="gpt-4",
temperature=0,
max_tokens=7000,
max_tokens=7192,
messages=[
{
"role": "system",
"content": "You are a helpful assistant that makes recommendations based on "
+ "strictly existing films."
+ "strictly existing films,series."
+ "Output JSON:recommendations:title,year or error.",
},
{
Expand Down

0 comments on commit acd8d81

Please sign in to comment.