Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
|
| 6 |
openai_client = OpenAI(api_key=OPENAI_API_KEY)
|
| 7 |
|
| 8 |
|
| 9 |
-
|
| 10 |
try:
|
| 11 |
response = openai_client.chat.completions.create(
|
| 12 |
model="gpt-3.5-turbo", # or another model of your choice
|
|
|
|
| 6 |
openai_client = OpenAI(api_key=OPENAI_API_KEY)
|
| 7 |
|
| 8 |
|
| 9 |
+
def generate_response(prompt,temperature, top_p, max_tokens, repetition_penalty):
|
| 10 |
try:
|
| 11 |
response = openai_client.chat.completions.create(
|
| 12 |
model="gpt-3.5-turbo", # or another model of your choice
|