change prompt about making a quick guess on chess
Browse files140 unmodified lines1411421431441441451461471 unmodified line1491501511521521531541557 unmodified lines163164165166166167168169170171170172173174175140 unmodified lines if not api_key: raise ValueError("OPENAI_API_KEY not set in environment variables!") model = LiteLLMModel( model_id="gpt-4o", model_id="gpt-4.1", api_key=api_key ) 1 unmodified line self.agent = CodeAgent( model=model, tools=my_tool_list, max_steps=4, max_steps=3, )
def __call__(self, question: str, files=None, idx=None, total=None) -> str:7 unmodified lines You may freely think, reason, and use tools or your own knowledge as needed to solve the problem. Core principles: - Use available tools when helpful - 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 - Think step by step, but don't overthink - When in doubt, try the most likely answer When 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