ositamiles commited on
Commit
b6ae229
·
verified ·
1 Parent(s): ee829fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -56,9 +56,12 @@ def get_llm_analysis(game_info, market_info):
56
  Provide your analysis in a structured format with clear recommendations.
57
  """
58
 
59
- response = openai.Completion.create(
60
- engine="gpt-4",
61
- prompt=prompt,
 
 
 
62
  max_tokens=300,
63
  n=1,
64
  stop=None,
 
56
  Provide your analysis in a structured format with clear recommendations.
57
  """
58
 
59
+ response = openai.ChatCompletion.create(
60
+ model="gpt-4",
61
+ messages=[
62
+ {"role": "system", "content": "You are an expert in game pricing and market trends."},
63
+ {"role": "user", "content": prompt}
64
+ ],
65
  max_tokens=300,
66
  n=1,
67
  stop=None,