Upload orbit_wars_agents.py with huggingface_hub
Browse files8 unmodified lines910111213141516171819202122232425268 unmodified linesfrom kaggle_environments import makeimport litellm# Set API key and model through environment variablesMODEL_NAME = os.getenv("LLM_MODEL", "gpt-4o-mini")# Allow the user to override litellm's base API to hit custom endpoints like Julescustom_base = os.getenv("OPENAI_API_BASE")if custom_base:litellm.api_base = custom_baseif not os.getenv("OPENAI_API_KEY"):print("Warning: OPENAI_API_KEY environment variable is not set. API calls will likely fail.")print(f"Using model: {MODEL_NAME}")BASE_BOT = """def agent(obs, conf):8 unmodified lines9101112131415161718192021228 unmodified linesfrom kaggle_environments import makeimport litellm# Set API key and model for Jules/Pollinations APIMODEL_NAME = os.getenv("LLM_MODEL", "openai/openai")litellm.api_base = "https://gen.pollinations.ai"if not os.getenv("OPENAI_API_KEY"):print("Warning: OPENAI_API_KEY environment variable is not set. Ensure the Jules API key is set to make API calls.")print(f"Using Jules/Pollinations API model: {MODEL_NAME}")BASE_BOT = """def agent(obs, conf):
orbit_wars_agents.py+5-9