MCPcopy Create free account
hub / github.com/grapeot/devin.cursorrules / test_query_o1_model

Method test_query_o1_model

tests/test_llm_api.py:331–340  ·  view source on GitHub ↗
(self, mock_create_client)

Source from the content-addressed store, hash-verified

329 @unittest.skipIf(skip_llm_tests, skip_message)
330 @patch('tools.llm_api.create_llm_client')
331 def test_query_o1_model(self, mock_create_client):
332 mock_create_client.return_value = self.mock_openai_client
333 response = query_llm("Test prompt", model="o1")
334 self.assertEqual(response, "Test OpenAI response")
335 self.mock_openai_client.chat.completions.create.assert_called_once_with(
336 model="o1",
337 messages=[{"role": "user", "content": [{"type": "text", "text": "Test prompt"}]}],
338 response_format={"type": "text"},
339 reasoning_effort="low"
340 )
341
342 @unittest.skipIf(skip_llm_tests, skip_message)
343 @patch('tools.llm_api.create_llm_client')

Callers

nothing calls this directly

Calls 1

query_llmFunction · 0.90

Tested by

no test coverage detected