-SKIP
-DATASET CSV empty

--

-CASE BadParams

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

#When using an invalid region this provider seems to silently ignore the issue
#and resort to a default. The same is not true for the empty string
-STATEMENT return create_embedding('this better fail', 'google-vertex', 'gemini-embedding-001', '')
---- error(regex)
^Connection exception: Request failed with status \d{3}\n Body: \{[\s\S]+\}[\s\S]*

-STATEMENT return create_embedding('this better fail', 'google-vertex', 'gemini-embedding-001', 50, 'badRegion')
---- ok

-STATEMENT return create_embedding('this better fail', 'google-vertex', 'gemini-embedding-001', -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', 'google-vertex', 'gemini-embedding-001')
---- error
Binder exception: Function CREATE_EMBEDDING for google-vertex did not receive correct arguments:
Actual:   (STRING,STRING,STRING)
Expected: (STRING,STRING,STRING,STRING) -> LIST
          (STRING,STRING,STRING,INT64,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', 'google-vertex', 'randomModel', 'us-central1')
---- error(regex)
^Connection exception: Request failed with status \d{3}\n Body: \{[\s\S]+\}[\s\S]*
