MCPcopy Create free account
hub / github.com/T-duality/PillOCR-python / set_api_key

Method set_api_key

GPTOCRGUI.py:56–59  ·  view source on GitHub ↗
(self, api_key)

Source from the content-addressed store, hash-verified

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"""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected