Skip to content

Commit

Permalink
fbcode//security/genai/CybersecurityBenchmarks/benchmark/tests
Browse files Browse the repository at this point in the history
Differential Revision: D52026102

fbshipit-source-id: b26b256309d5bc89c58371b3a42b01d9455b0ca1
  • Loading branch information
generatedunixname2443911735787003 authored and facebook-github-bot committed Dec 11, 2023
1 parent cac8d15 commit 5cf9ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CybersecurityBenchmarks/benchmark/tests/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TestLLM(unittest.TestCase):
def test_create(self) -> None:
llama = llm.create("TOGETHER::togethercomputer/llama-2-7b::<my API key>")
self.assertTrue(isinstance(llama, llm.TOGETHER))
self.assertEquals(llama.model, "togethercomputer/llama-2-7b")
self.assertEquals(llama.api_key, "<my API key>")
self.assertEqual(llama.model, "togethercomputer/llama-2-7b")
self.assertEqual(llama.api_key, "<my API key>")

self.assertRaises(ValueError, lambda: llm.create("GPT::unknown::<my API key"))

0 comments on commit 5cf9ad6

Please sign in to comment.