Spaces:
Build error
Build error
Update app.py
Browse files3 unmodified lines456789103 unmodified linesOPENAI_API_KEY = os.getenv("OPENAI_API_KEY")openai_client = OpenAI(api_key=OPENAI_API_KEY)def generate_response(prompt,temperature, top_p, max_tokens, repetition_penalty):try:response = openai_client.chat.completions.create(model="gpt-3.5-turbo", # or another model of your choice3 unmodified lines456789103 unmodified linesOPENAI_API_KEY = os.getenv("OPENAI_API_KEY")openai_client = OpenAI(api_key=OPENAI_API_KEY)def generate_response(prompt,model,temperature, top_p, max_tokens, repetition_penalty):try:response = openai_client.chat.completions.create(model="gpt-3.5-turbo", # or another model of your choice
app.py+1-1