QuestionQ43

Snowflake Gen AI & LLM Functions

This command is run:

Question Image

This error is returned:

Question Image

What causes this error?

  • A The temperature option cannot be used with the guardrails option,
  • B The options argument must be the second parameter in the function call
  • C The max_tokens option must be included when using the guardrails option.
  • D The prompt_or_history argument must be an array of objects when using the options argument.
Explanation

SNOWFLAKE.CORTEX.COMPLETE has the signature (model, prompt_or_history [, options]). When an options object is provided, prompt_or_history must be an array of conversation-message objects containing role and content; a single object is not valid for that argument. Snowflake COMPLETE documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!