change prompt about making a quick guess on chess
Browse files140 unmodified lines1411421431441451461471 unmodified line1491501511521531541557 unmodified lines163164165166167168169170171172173140 unmodified linesif not api_key:raise ValueError("OPENAI_API_KEY not set in environment variables!")model = LiteLLMModel(model_id="gpt-4o",api_key=api_key)1 unmodified lineself.agent = CodeAgent(model=model,tools=my_tool_list,max_steps=4,)def __call__(self, question: str, files=None, idx=None, total=None) -> str:7 unmodified linesYou may freely think, reason, and use tools or your own knowledge as needed to solve the problem.Core principles:- Use available tools when helpful- Apply your knowledge and experience- Don't be afraid to make educated guesses when you have partial information- Try multiple approaches if the first one doesn't work- Think step by step, but don't overthinkWhen you have enough information to give a reasonable answer, go for it.Only use "unknown" when you truly cannot make any reasonable attempt.140 unmodified lines1411421431441451461471 unmodified line1491501511521531541557 unmodified lines163164165166167168169170171172173174175140 unmodified linesif not api_key:raise ValueError("OPENAI_API_KEY not set in environment variables!")model = LiteLLMModel(model_id="gpt-4.1",api_key=api_key)1 unmodified lineself.agent = CodeAgent(model=model,tools=my_tool_list,max_steps=3,)def __call__(self, question: str, files=None, idx=None, total=None) -> str:7 unmodified linesYou may freely think, reason, and use tools or your own knowledge as needed to solve the problem.Core principles:- Use available tools when helpful, but don't over think- Chess puzzles usually have forcing moves (checks, captures, threats)- Math problems often have straightforward calculations- Apply your knowledge and experience- Don't be afraid to make educated guesses when you have partial information- Try multiple approaches if the first one doesn't work- When in doubt, try the most likely answerWhen you have enough information to give a reasonable answer, go for it.Only use "unknown" when you truly cannot make any reasonable attempt.
app.py+6-4