Zaious commited on
Commit
1cdbc53
·
verified ·
1 Parent(s): ac6a145

Update ideaGen_Followup.py

Browse files
Files changed (1) hide show
  1. ideaGen_Followup.py +2 -2
ideaGen_Followup.py CHANGED
@@ -50,7 +50,7 @@ def ideagen(content_type,context):
50
 
51
  #for _ in range(loop):
52
  response = client.chat.completions.create(
53
- model='gpt-4-turbo',
54
  max_tokens=2000,
55
  temperature=0.7,
56
  messages=messages_base
@@ -58,7 +58,7 @@ def ideagen(content_type,context):
58
  completed_text = response.choices[0].message.content
59
  total_prompt_tokens_used += response.usage.prompt_tokens
60
  total_completion_tokens_used += response.usage.completion_tokens
61
- price = total_prompt_tokens_used*0.03/1000 + total_completion_tokens_used*0.06/1000
62
 
63
  full_text += completed_text + "\n\n----------\n\n"
64
  total_price += price
 
50
 
51
  #for _ in range(loop):
52
  response = client.chat.completions.create(
53
+ model='gpt-4o',
54
  max_tokens=2000,
55
  temperature=0.7,
56
  messages=messages_base
 
58
  completed_text = response.choices[0].message.content
59
  total_prompt_tokens_used += response.usage.prompt_tokens
60
  total_completion_tokens_used += response.usage.completion_tokens
61
+ price = total_prompt_tokens_used*0.005/1000 + total_completion_tokens_used*0.015/1000
62
 
63
  full_text += completed_text + "\n\n----------\n\n"
64
  total_price += price