Skip to content

Commit 81847dc

Browse files
authored
To disable ssl verification for chatbot readiness for TLS communication updates (#1731)
* add ssl verification for chatbot readiness * update verify_ssl for chatpipeline health
1 parent 94f96a1 commit 81847dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ansible_ai_connect/ai/api/model_pipelines/http/pipelines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def self_test(self) -> HealthCheckSummary:
113113
}
114114
)
115115
try:
116-
res = requests.get(url, verify=True, timeout=1)
116+
res = requests.get(url, verify=self.config.verify_ssl, timeout=1)
117117
res.raise_for_status()
118118
except Exception as e:
119119
logger.exception(str(e))
@@ -145,6 +145,7 @@ def self_test(self) -> HealthCheckSummary:
145145
self.config.inference_url + "/readiness",
146146
headers=headers,
147147
timeout=1,
148+
verify=self.config.verify_ssl,
148149
)
149150
r.raise_for_status()
150151

0 commit comments

Comments
 (0)