Skip to content

Commit

Permalink
added logging around tgis timout config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shonda-Adena-Witherspoon committed Jun 4, 2024
1 parent 75cd9ea commit afb3c21
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions caikit_nlp/toolkit/text_generation/tgis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,21 @@ def __init__(

self.tgis_req_timeout = get_config().tgis_request_timeout

if (
not self.tgis_req_timeout
or not isinstance(self.tgis_req_timeout, int)
or self.tgis_req_timeout <= 0
):
log.info("<RUN57106697I>", "TGIS timeout not set")
self.tgis_req_timeout = None

else:
log.info(
"<RUN57106696T>",
"Setting TGIS timeout value to %d",
self.tgis_req_timeout,
)

def unary_generate(
self,
text,
Expand Down

0 comments on commit afb3c21

Please sign in to comment.