fix(gpt): use default gpt service
This commit is contained in:
parent
f42ce412ae
commit
383b985869
|
@ -17,7 +17,7 @@ class _GPTService(AbstractForecastService):
|
|||
super().__init__()
|
||||
|
||||
self.table_name = None
|
||||
self.service_host = 'http://192.168.2.90:5000/ds_predict'
|
||||
self.service_host = 'http://127.0.0.1:5000/ds_predict'
|
||||
self.headers = {'Content-Type': 'application/json'}
|
||||
|
||||
self.std = None
|
||||
|
@ -61,9 +61,7 @@ class _GPTService(AbstractForecastService):
|
|||
def set_params(self, params):
|
||||
super().set_params(params)
|
||||
|
||||
if "host" not in params:
|
||||
raise ValueError("gpt service host needs to be specified")
|
||||
|
||||
if "host" in params:
|
||||
self.service_host = params['host']
|
||||
|
||||
if self.service_host.startswith("https://"):
|
||||
|
|
Loading…
Reference in New Issue