ChatSnowflakeCortex

Hi all,

Currently the documentation for ChatSnowflakeCortex requires a username and password as shown below:

chat = ChatSnowflakeCortex(
# Change the default cortex model and function
model=“mistral-large”,
cortex_function=“complete”,

# Change the default generation parameters
temperature=0,
max_tokens=10,
top_p=0.95,

# Specify your Snowflake Credentials
account="YOUR_SNOWFLAKE_ACCOUNT",
username="YOUR_SNOWFLAKE_USERNAME",
password="YOUR_SNOWFLAKE_PASSWORD",
database="YOUR_SNOWFLAKE_DATABASE",
schema="YOUR_SNOWFLAKE_SCHEMA",
role="YOUR_SNOWFLAKE_ROLE",
warehouse="YOUR_SNOWFLAKE_WAREHOUSE"

)

Is there any way to connect using SSO?

It is not currently possible.

Feel free to open an issue against langchain-community requesting SSO be added - if there is enough community interest, we may consider supporting. Better yet, you are welcome to open a PR.

Thanks a lot Mason.