Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: caikit/caikit-nlp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.4.12
Choose a base ref
...
head repository: caikit/caikit-nlp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.13
Choose a head ref
  • 5 commits
  • 1 file changed
  • 3 contributors

Commits on Jun 5, 2024

  1. added logging around tgis timout config setting

    Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
    Shonda-Adena-Witherspoon committed Jun 5, 2024
    Copy the full SHA
    7e328c7 View commit details
  2. Update caikit_nlp/toolkit/text_generation/tgis_utils.py

    change logging to debug
    
    Co-authored-by: Gaurav Kumbhat <kumbhat.gaurav@gmail.com>
    Signed-off-by: swith004 <switherspoon004@gmail.com>
    Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
    2 people authored and Shonda-Adena-Witherspoon committed Jun 5, 2024
    Copy the full SHA
    f4496b9 View commit details
  3. Update caikit_nlp/toolkit/text_generation/tgis_utils.py

    change logging to debug
    
    Co-authored-by: Gaurav Kumbhat <kumbhat.gaurav@gmail.com>
    Signed-off-by: swith004 <switherspoon004@gmail.com>
    Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
    2 people authored and Shonda-Adena-Witherspoon committed Jun 5, 2024
    Copy the full SHA
    7211497 View commit details
  4. fixed formatting

    Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
    Shonda-Adena-Witherspoon committed Jun 5, 2024
    Copy the full SHA
    b710556 View commit details
  5. Merge pull request #361 from swith004/server-logging-931

    logging around tgis timout config setting
    gkumbhat authored Jun 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4bf53fd View commit details
Showing with 15 additions and 0 deletions.
  1. +15 −0 caikit_nlp/toolkit/text_generation/tgis_utils.py
15 changes: 15 additions & 0 deletions caikit_nlp/toolkit/text_generation/tgis_utils.py
Original file line number Diff line number Diff line change
@@ -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.debug("<RUN57106697I>", "TGIS timeout not set")
self.tgis_req_timeout = None

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

def unary_generate(
self,
text,