(self, openai_api_key = "", stream_output=False, llm='ChatGPT')
| 66 | |
| 67 | class STQuestionAnswerer: |
| 68 | def __init__(self, openai_api_key = "", stream_output=False, llm='ChatGPT'): |
| 69 | if len(openai_api_key) < 3: # not valid key (TODO: more rigorous checking) |
| 70 | openai_api_key = os.environ.get('OPENAI_API_KEY') |
| 71 | |
| 72 | self.openai_api_key = openai_api_key |
| 73 | self.llm_model = llm |
| 74 | |
| 75 | self.set_openai_api_key(openai_api_key) |
| 76 | self.stream_output = stream_output |
| 77 | |
| 78 | |
| 79 |
nothing calls this directly
no test coverage detected