(self, api_key)
| 54 | self.current_provider = provider |
| 55 | |
| 56 | def set_api_key(self, api_key): |
| 57 | if not api_key: |
| 58 | self.log_callback("API Key不能为空") |
| 59 | os.environ['OPENAI_API_KEY'] = api_key |
| 60 | |
| 61 | def set_proxy(self, proxy): |
| 62 | """根据服务商设置代理和client""" |
no outgoing calls
no test coverage detected