why do i need a openai api key when i am using deepinfra
Browse files27 unmodified lines2829303132333433 unmodified lines686970717273747527 unmodified linesclass BoomBot:def __init__(self, provider="meta"):"""Initialize the BoomBot with the specified provider.33 unmodified linesmin_p=0.0,)elif self.provider == "anthropic":model_id = "anthropic/claude-3-5-sonnet-latest"return LiteLLMModel(model_id=model_id, temperature=0.6, max_tokens=8192)elif self.provider == "deepinfra":deepinfra_model = "Qwen/Qwen3-235B-A22B"return OpenAIServerModel(27 unmodified lines2829303132333433 unmodified lines68697071727374757677787927 unmodified linesclass BoomBot:def __init__(self, provider="anthropic"):"""Initialize the BoomBot with the specified provider.33 unmodified linesmin_p=0.0,)elif self.provider == "anthropic":model_id = "anthropic/claude-3-5-haiku-latest"return LiteLLMModel(model_id=model_id,temperature=0.6,max_tokens=8192,api_key=os.getenv("ANTHROPIC_API_KEY"))elif self.provider == "deepinfra":deepinfra_model = "Qwen/Qwen3-235B-A22B"return OpenAIServerModel(
16 unmodified lines1718192021222316 unmodified linesclass BasicAgent:def __init__(self):print("BasicAgent initialized.")self.agent = BoomBot(provider="deepinfra")def __call__(self, question: str, task_id: str, to_download) -> str:print(f"Agent received question (first 50 chars): {question[:50]}...")16 unmodified lines1718192021222316 unmodified linesclass BasicAgent:def __init__(self):print("BasicAgent initialized.")self.agent = BoomBot(provider="anthropic")def __call__(self, question: str, task_id: str, to_download) -> str:print(f"Agent received question (first 50 chars): {question[:50]}...")
agent.py+7-3
app.py+1-1