hellokawei commited on
Commit
a138de3
·
verified ·
1 Parent(s): 49237b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from openai import OpenAI
4
 
5
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
6
  openai_client = OpenAI(api_key=OPENAI_API_KEY)
7
- def generate_response(prompt,temperature, top_p, max_tokens, repetition_penalty):
8
  try:
9
  response = openai_client.chat.completions.create(
10
  model="gpt-3.5-turbo", # or another model of your choice
 
4
 
5
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
6
  openai_client = OpenAI(api_key=OPENAI_API_KEY)
7
+ def generate_response(prompt,model,temperature, top_p, max_tokens, repetition_penalty):
8
  try:
9
  response = openai_client.chat.completions.create(
10
  model="gpt-3.5-turbo", # or another model of your choice