-SKIP
-DATASET CSV empty

--

-CASE BadParams

-STATEMENT load extension "${KUZU_ROOT_DIRECTORY}/extension/llm/build/libllm.kuzu_extension"
---- ok

-STATEMENT return create_embedding('this better fail', 'amazon-bedrock', 'amazon.titan-embed-text-v1', 50)
---- error
Binder exception: Function CREATE_EMBEDDING for amazon-bedrock did not receive correct arguments:
Actual:   (STRING,STRING,STRING,INT64)
Expected: (STRING,STRING,STRING,STRING) -> LIST
For more information, please refer to the official Kuzu documentation: https://docs.kuzudb.com/extensions/llm/

-STATEMENT return create_embedding('this better fail', 'amazon-bedrock', 'amazon.titan-embed-text-v1', 'badRegion')
---- error
Connection exception: Request failed: Could not connect to server <https://bedrock-runtime.badregion.amazonaws.com> 
For more information, please refer to the official Kuzu documentation: https://docs.kuzudb.com/extensions/llm/

-STATEMENT return create_embedding('this better fail', 'amazon-bedrock', 'amazon.titan-embed-text-v1', 50, 'badRegion')
---- error
Binder exception: Function CREATE_EMBEDDING for amazon-bedrock did not receive correct arguments:
Actual:   (STRING,STRING,STRING,INT64,STRING)
Expected: (STRING,STRING,STRING,STRING) -> LIST
For more information, please refer to the official Kuzu documentation: https://docs.kuzudb.com/extensions/llm/

-STATEMENT return create_embedding('this better fail', 'amazon-bedrock', 'amazon.titan-embed-text-v1', -50, 'badRegion')
---- error
Binder exception: Dimensions should be greater than 0. Got: -50.
For more information, please refer to the official Kuzu documentation: https://docs.kuzudb.com/extensions/llm/

-STATEMENT return create_embedding('this better fail', 'amazon-bedrock', 'amazon.titan-embed-text-v1')
---- error
Binder exception: Function CREATE_EMBEDDING for amazon-bedrock did not receive correct arguments:
Actual:   (STRING,STRING,STRING)
Expected: (STRING,STRING,STRING,STRING) -> LIST
For more information, please refer to the official Kuzu documentation: https://docs.kuzudb.com/extensions/llm/

-STATEMENT return create_embedding('this better fail', 'amazon-bedrock', 'dsadadsadasxxs', 'us-east-1')
---- error(regex)
^Connection exception: Request failed with status \d{3}\n Body: \{[\s\S]+\}[\s\S]*

-STATEMENT return create_embedding('this better fail', 'amazon-bedrock', 'amazon.titan-embed-text-v1', 50)
---- error
Binder exception: Function CREATE_EMBEDDING for amazon-bedrock did not receive correct arguments:
Actual:   (STRING,STRING,STRING,INT64)
Expected: (STRING,STRING,STRING,STRING) -> LIST
For more information, please refer to the official Kuzu documentation: https://docs.kuzudb.com/extensions/llm/
