Spaces:
Running

pgleeson commited on
Commit
4737914
·
1 Parent(s): c4cb68e

Test install openworm-ai

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -1
  3. ring.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from ring import get_openai_api_key
10
  from ring import generate_response
11
  from ring import generate_panel_response
12
 
13
- __version__ = "0.3.1"
14
 
15
  col1, col2 = st.columns([3, 1])
16
 
 
10
  from ring import generate_response
11
  from ring import generate_panel_response
12
 
13
+ __version__ = "0.4.0"
14
 
15
  col1, col2 = st.columns([3, 1])
16
 
requirements.txt CHANGED
@@ -15,4 +15,5 @@ langchain_ai21
15
  langchain_anthropic
16
  langchain_cohere
17
  streamlit
18
- llama_index
 
 
15
  langchain_anthropic
16
  langchain_cohere
17
  streamlit
18
+ llama_index
19
+ openworm-ai
ring.py CHANGED
@@ -7,7 +7,7 @@ LLM_GPT35 = "GPT3.5"
7
  LLM_GPT4 = "GPT4"
8
  LLM_GPT4o = "GPT4o"
9
  LLM_LLAMA2 = "LLAMA2"
10
- LLM_GEMINI = "Gemini"
11
  LLM_AI21 = "AI21"
12
  LLM_CLAUDE2 = "Claude2.1"
13
  LLM_COHERE = "Cohere"
@@ -114,7 +114,7 @@ def get_llm(llm_ver, temperature):
114
  from langchain_google_genai import ChatGoogleGenerativeAI
115
 
116
  llm = ChatGoogleGenerativeAI(
117
- model="gemini-1.5-pro", google_api_key=get_gemini_api_key()
118
  )
119
 
120
  elif llm_ver == LLM_AI21:
 
7
  LLM_GPT4 = "GPT4"
8
  LLM_GPT4o = "GPT4o"
9
  LLM_LLAMA2 = "LLAMA2"
10
+ LLM_GEMINI = "gemini-1.5-pro"
11
  LLM_AI21 = "AI21"
12
  LLM_CLAUDE2 = "Claude2.1"
13
  LLM_COHERE = "Cohere"
 
114
  from langchain_google_genai import ChatGoogleGenerativeAI
115
 
116
  llm = ChatGoogleGenerativeAI(
117
+ model=LLM_GEMINI, google_api_key=get_gemini_api_key()
118
  )
119
 
120
  elif llm_ver == LLM_AI21: