Hugging Face · Arazzo Workflow
Hugging Face TGI Inspect and Generate
Version 1.0.0
Read a TGI server's info, tokenize a prompt to check its length, then generate text.
Provider
Workflows
tgi-inspect-and-generate
Inspect a TGI server, tokenize a prompt, and generate text from it.
Reads TGI server info, tokenizes the prompt to measure its token count, and generates text from the prompt against the loaded model.
1
getServerInfo
getInfo
Read the TGI server info to learn the loaded model id and its maximum input length before submitting a prompt.
2
tokenizePrompt
tokenize
Tokenize the prompt to measure how many tokens it consumes against the server's input limit.
3
generateText
generate
Generate text from the prompt using the loaded model with details enabled so the finish reason and token count are returned.
Source API Descriptions
openapi