Spaces:
Runtime error
Runtime error
Update openai_api.py
Browse files- openai_api.py +2 -2
openai_api.py
CHANGED
@@ -9,12 +9,12 @@ class OpenAI_API:
|
|
9 |
def single_request(self, address_text):
|
10 |
|
11 |
openai.api_type = "azure"
|
12 |
-
openai.api_base = "https://afet-org
|
13 |
openai.api_version = "2022-12-01"
|
14 |
openai.api_key = os.getenv("API_KEY")
|
15 |
|
16 |
response = openai.Completion.create(
|
17 |
-
engine="
|
18 |
prompt=address_text,
|
19 |
temperature=0.0,
|
20 |
max_tokens=500,
|
|
|
9 |
def single_request(self, address_text):
|
10 |
|
11 |
openai.api_type = "azure"
|
12 |
+
openai.api_base = "https://afet-org.openai.azure.com/"
|
13 |
openai.api_version = "2022-12-01"
|
14 |
openai.api_key = os.getenv("API_KEY")
|
15 |
|
16 |
response = openai.Completion.create(
|
17 |
+
engine="afet-org",
|
18 |
prompt=address_text,
|
19 |
temperature=0.0,
|
20 |
max_tokens=500,
|