amitpuri commited on
Commit
33dbe31
1 Parent(s): ddb7a0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,7 @@ openai_models = ["gpt-4", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0613", "gpt-3.5-
13
  "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613", "text-davinci-003",
14
  "text-davinci-002", "text-curie-001", "text-babbage-001", "text-ada-001"]
15
 
16
- google_palm_models = ["models/text-bison-001"]
17
 
18
  azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
19
  azure_deployment_name = os.getenv("AZURE_OPENAI_DEPLOYMENT_NAME")
@@ -26,6 +26,7 @@ def openai_text_completion(prompt: str, model: str):
26
 
27
  assistant_prompt: str = None,
28
 
 
29
  messages = [
30
  {"role": "user", "content": f"{prompt}"},
31
  {"role": "system", "content": f"{system_prompt}"},
 
13
  "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613", "text-davinci-003",
14
  "text-davinci-002", "text-curie-001", "text-babbage-001", "text-ada-001"]
15
 
16
+ google_palm_models = ["models/text-bison-001", "models/chat-bison-001","models/embedding-gecko-001"]
17
 
18
  azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
19
  azure_deployment_name = os.getenv("AZURE_OPENAI_DEPLOYMENT_NAME")
 
26
 
27
  assistant_prompt: str = None,
28
 
29
+
30
  messages = [
31
  {"role": "user", "content": f"{prompt}"},
32
  {"role": "system", "content": f"{system_prompt}"},