Update app.py
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ else:
|
|
| 175 |
messages: Annotated[List[BaseMessage], operator.add]
|
| 176 |
|
| 177 |
if st.session_state.use_sonnet and "ANTHROPIC_API_KEY" in os.environ:
|
| 178 |
-
llm = ChatAnthropic(temperature=0, model_name="claude-3-sonnet-
|
| 179 |
else:
|
| 180 |
llm = ChatAnthropic(temperature=0, model_name="claude-3-haiku-20240307")
|
| 181 |
|
|
@@ -289,7 +289,7 @@ else:
|
|
| 289 |
# Recreate the graph with the updated system prompt
|
| 290 |
global graph
|
| 291 |
if st.session_state.use_sonnet and "ANTHROPIC_API_KEY" in os.environ:
|
| 292 |
-
new_llm = ChatAnthropic(temperature=0, model_name="claude-3-sonnet-
|
| 293 |
else:
|
| 294 |
new_llm = ChatAnthropic(temperature=0, model_name="claude-3-haiku-20240307")
|
| 295 |
|
|
|
|
| 175 |
messages: Annotated[List[BaseMessage], operator.add]
|
| 176 |
|
| 177 |
if st.session_state.use_sonnet and "ANTHROPIC_API_KEY" in os.environ:
|
| 178 |
+
llm = ChatAnthropic(temperature=0, model_name="claude-3-5-sonnet-20240620")
|
| 179 |
else:
|
| 180 |
llm = ChatAnthropic(temperature=0, model_name="claude-3-haiku-20240307")
|
| 181 |
|
|
|
|
| 289 |
# Recreate the graph with the updated system prompt
|
| 290 |
global graph
|
| 291 |
if st.session_state.use_sonnet and "ANTHROPIC_API_KEY" in os.environ:
|
| 292 |
+
new_llm = ChatAnthropic(temperature=0, model_name="claude-3-5-sonnet-20240620")
|
| 293 |
else:
|
| 294 |
new_llm = ChatAnthropic(temperature=0, model_name="claude-3-haiku-20240307")
|
| 295 |
|