Spaces:
Sleeping
Sleeping
Update model to davinci-003
Browse files- actions/actions.py +1 -1
actions/actions.py
CHANGED
@@ -31,7 +31,7 @@ secret_value_0 = os.environ.get("openai")
|
|
31 |
openai.api_key = secret_value_0
|
32 |
# Provide your OpenAI API key
|
33 |
|
34 |
-
def generate_openai_response(query, model_engine="text-davinci-
|
35 |
"""Generate a response using the OpenAI API."""
|
36 |
|
37 |
# Run the main function from search_content.py and store the results in a variable
|
|
|
31 |
openai.api_key = secret_value_0
|
32 |
# Provide your OpenAI API key
|
33 |
|
34 |
+
def generate_openai_response(query, model_engine="text-davinci-003", max_tokens=124, temperature=0.8):
|
35 |
"""Generate a response using the OpenAI API."""
|
36 |
|
37 |
# Run the main function from search_content.py and store the results in a variable
|