Spaces:
Sleeping
Sleeping
bill.py
CHANGED
@@ -99,7 +99,7 @@ def main():
|
|
99 |
st.title("Telecom Bill Chat with LLM Agent")
|
100 |
|
101 |
# Create a sidebar menu to choose between models
|
102 |
-
|
103 |
if "user_id" not in st.session_state:
|
104 |
st.session_state.user_id = None
|
105 |
|
@@ -172,7 +172,7 @@ def main():
|
|
172 |
|
173 |
# Now call GPT-4 with the entire conversation
|
174 |
completion = client.chat.completions.create(
|
175 |
-
model=
|
176 |
messages=st.session_state["messages"]
|
177 |
)
|
178 |
response_text = completion.choices[0].message.content.strip()
|
|
|
99 |
st.title("Telecom Bill Chat with LLM Agent")
|
100 |
|
101 |
# Create a sidebar menu to choose between models
|
102 |
+
model_name = st.sidebar.selectbox("Choose OpenAI Model", ["gpt-4o", "gpt-4o-mini"])
|
103 |
if "user_id" not in st.session_state:
|
104 |
st.session_state.user_id = None
|
105 |
|
|
|
172 |
|
173 |
# Now call GPT-4 with the entire conversation
|
174 |
completion = client.chat.completions.create(
|
175 |
+
model=model_name,
|
176 |
messages=st.session_state["messages"]
|
177 |
)
|
178 |
response_text = completion.choices[0].message.content.strip()
|