Skip to content

Commit

Permalink
suppress errors in security/genai
Browse files Browse the repository at this point in the history
Differential Revision: D53502813

fbshipit-source-id: e95b0e0f5f81774c3c2849f495ae78d133d90b40
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Feb 7, 2024
1 parent d2698fb commit fadbeed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CybersecurityBenchmarks/benchmark/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class OPENAI(LLM):

def __init__(self, model: str, api_key: str) -> None:
super().__init__(model, api_key)
# pyre-ignore[4, 16]: we're using slightly older version of openai internally
self.client = openai.OpenAI(api_key=api_key) # noqa

@override
Expand Down Expand Up @@ -137,7 +136,6 @@ class ANYSCALE(LLM):

def __init__(self, model: str, api_key: str) -> None:
super().__init__(model, api_key)
# pyre-ignore[4, 16]: we're using slightly older version of openai internally
self.client = openai.OpenAI(base_url="https://api.endpoints.anyscale.com/v1", api_key=api_key) # noqa

@override
Expand Down

0 comments on commit fadbeed

Please sign in to comment.