snowflake.core.cortex.inference_service.CortexInferenceService¶

class snowflake.core.cortex.inference_service.CortexInferenceService(root: Root)¶

Bases: object

Represents the Snowflake Cortex Inference Service resource.

Methods

complete(complete_request: CompleteRequest) → SSEClient¶

Perform LLM text completion inference, similar to snowflake.cortex.Complete.

Parameters:

complete_request (CompleteRequest) – LLM text completion request.

complete_async(complete_request: CompleteRequest) → PollingOperation[SSEClient]¶

An asynchronous version of complete().

Refer to PollingOperation for more information on asynchronous execution and the return type.