Skip to main content

complete_model

No overview available.

def complete_model(
prompt: string,
model_name: string,
max_tokens: integer = 100
) - > string

Generates a text completion based on a provided prompt using a specified language model.

Parameters

NameTypeDescription
promptstringThe input text or instruction that the model should respond to.
model_namestringThe identifier of the specific language model to use for generation.
max_tokensinteger = 100The maximum number of tokens to generate in the response.

Returns

TypeDescription
stringThe generated text completion from the model.