Skip to content

Commit

Permalink
llama3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankdeshpande committed Jul 23, 2024
1 parent 60de66a commit 9cc2271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def choose_custom_openai_key():
return model, openai_api_key

def configure_llm():
available_llms = ["gpt-4o-mini","llama3:8b","use your openai api key"]
available_llms = ["gpt-4o-mini","llama3.1:8b","use your openai api key"]
llm_opt = st.sidebar.radio(
label="LLM",
options=available_llms,
key="SELECTED_LLM"
)

if llm_opt == "llama3:8b":
llm = ChatOllama(model="llama3", base_url=st.secrets["OLLAMA_ENDPOINT"])
if llm_opt == "llama3.1:8b":
llm = ChatOllama(model="llama3.1", base_url=st.secrets["OLLAMA_ENDPOINT"])
elif llm_opt == "gpt-4o-mini":
llm = ChatOpenAI(model_name=llm_opt, temperature=0, streaming=True, api_key=st.secrets["OPENAI_API_KEY"])
else:
Expand Down

0 comments on commit 9cc2271

Please sign in to comment.