gabejavitt commited on
Commit
48f10c4
·
verified ·
1 Parent(s): 49d3c0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -17
app.py CHANGED
@@ -906,23 +906,22 @@ REMEMBER: One tool per turn. No reasoning without tools. Exact answer format.
906
  # huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
907
  # max_new_tokens=2048, # Increased token limit for potentially longer reasoning/tool use
908
  # temperature=0.01, # Keep temperature low for factual tasks
909
- #Use tool_choice="any" to FORCE tool usage
910
- """
911
- print("Initializing Groq LLM...")
912
- try:
913
- self.llm_with_tools = ChatGroq(
914
- temperature=0,
915
- groq_api_key=GROQ_API_KEY,
916
- model_name="qwen/qwen3-32b",
917
- max_tokens=4096,
918
- timeout=60
919
- ).bind_tools(self.tools, tool_choice="auto")
920
- print("✅ LLM initialized without FORCED tool usage.")
921
-
922
- except Exception as e:
923
- print(f"❌ Error initializing HuggingFace: {e}")
924
- raise
925
- """
926
  print("Initializing Google Gemini LLM...")
927
  try:
928
  self.llm_with_tools = ChatGoogleGenerativeAI(
 
906
  # huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
907
  # max_new_tokens=2048, # Increased token limit for potentially longer reasoning/tool use
908
  # temperature=0.01, # Keep temperature low for factual tasks
909
+ # Use tool_choice="any" to FORCE tool usage
910
+ # print("Initializing Groq LLM...")
911
+ # try:
912
+ # self.llm_with_tools = ChatGroq(
913
+ # temperature=0,
914
+ # groq_api_key=GROQ_API_KEY,
915
+ # model_name="qwen/qwen3-32b",
916
+ # max_tokens=4096,
917
+ # timeout=60
918
+ # ).bind_tools(self.tools, tool_choice="auto")
919
+ # print("✅ LLM initialized without FORCED tool usage.")
920
+ #
921
+ # except Exception as e:
922
+ # print(f"❌ Error initializing HuggingFace: {e}")
923
+ # raise
924
+ #
 
925
  print("Initializing Google Gemini LLM...")
926
  try:
927
  self.llm_with_tools = ChatGoogleGenerativeAI(