merve HF staff commited on
Commit
afacc5e
1 Parent(s): cbd5413

Update openai_api.py

Browse files
Files changed (1) hide show
  1. 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-v2.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="Davinci-003",
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,