diff --git a/src/utils/agi/chat_gpt.py b/src/utils/agi/chat_gpt.py index 0fab322..655dada 100644 --- a/src/utils/agi/chat_gpt.py +++ b/src/utils/agi/chat_gpt.py @@ -8,13 +8,11 @@ import streamlit as st @st.cache_data() def chat_gpt_request(ai_model: str, messages: List[dict]) -> dict: openai.api_key = st.secrets.api_credentials.api_key - logging.warning("messages:") - logging.warning(messages) + logging.info(f"{messages=}") completion = openai.ChatCompletion.create( model=ai_model, messages=messages, # temperature=0.7, ) - logging.warning("completion:") - logging.warning(completion) + logging.info(f"{completion=}") return completion