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