Spaces:
Build error
Build error
Commit ·
0989d5f
1
Parent(s): 27d6c4f
updated temperature value and use of groq model for faster execution
Browse filesFiles changed (4)
33 unmodified lines34353637373839402 unmodified lines434445464647484928 unmodified lines787980818182838433 unmodified linesfrom typing import Any, Optionalimport re # For stripping markdown fences
from langchain_openai import ChatOpenAIfrom langchain_groq import ChatGroqfrom langchain_core.messages import AIMessage, HumanMessage, SystemMessagefrom langchain_core.tools import toolfrom langgraph.graph import END, StateGraph2 unmodified lines# 0. Global config###############################################################################
MODEL_NAME = os.getenv("LANGGRAPH_MODEL", "gpt-4o-mini")MODEL_NAME = os.getenv("LANGGRAPH_MODEL", "qwen-qwq-32b")TIMEOUT_SEC = int(os.getenv("LANGGRAPH_TIMEOUT_SEC", "30"))
###############################################################################28 unmodified lines# 2. LLM backend###############################################################################
llm = ChatOpenAI(model_name=MODEL_NAME, temperature=0.0)llm = ChatGroq(model=MODEL_NAME, temperature= 0.6)
################################################################################ 3. Dataclass‑based state & LangGraph214 unmodified lines215216217218218219220221214 unmodified lines llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0) elif provider == "groq": # Groq https://console.groq.com/docs/models llm = ChatGroq(model="qwen-qwq-32b", temperature=0) # optional : qwen-qwq-32b gemma2-9b-it llm = ChatGroq(model="qwen-qwq-32b", temperature= 0.6) # optional : qwen-qwq-32b gemma2-9b-it elif provider == "huggingface": # TODO: Add huggingface endpoint llm = ChatHuggingFace(__pycache__/code_agent.cpython-313.pyc
__pycache__/langraph_agent.cpython-313.pyc
code_agent.py+3-3
langraph_agent.py+1-1