(self, args)
| 19 | |
| 20 | class llm_client(): |
| 21 | def __init__(self, args): |
| 22 | self.model = args["llm_model"] |
| 23 | self.base_url = args["llm_url"] |
| 24 | self.api_key = args["llm_api_key"] |
| 25 | self.client = OpenAI(base_url=self.base_url, api_key=self.api_key, http_client=httpx.Client(verify=False)) |
| 26 | def call(self, user_prompt: str, system_prompt: str = "") -> str: |
| 27 | |
| 28 | completion = self.client.chat.completions.create( |
nothing calls this directly
no outgoing calls
no test coverage detected