# `snowflake-ml-python=1.8.1`
model = 'llama3.2-3b'
#options = cortex.CompleteOptions(top_p=0, temperature=0)
resp = cortex.complete(model, 'tell me a joke', options={})
print(resp)
options = cortex.CompleteOptions(guardrails=True)
resp = cortex.complete(model, 'tell me a joke', options=options)
print(resp)
Both return a string without meta data (usage, created, model).
While cortex.Complete with options argument in the old version snowflake-ml-python=1.6.0 returns a JSON string with meta data.