-
Notifications
You must be signed in to change notification settings - Fork 565
feat: Add Snowflake Cortex LLM API #988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, only 1 minor change required, checkout other suggested changes as well @Ajay-Satish-01
Signed-off-by: Ajay-Satish-01 <ajay.satishpriya@gmail.com>
Signed-off-by: Ajay-Satish-01 <ajay.satishpriya@gmail.com>
src/types/requestBody.ts
Outdated
|
||
/** Cortex specific fields */ | ||
snowflakeAccount?: string; | ||
snowflakeApiKey?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove snowflakeApiKey and any references to it, the gateway standardizes using providerOptions.apiKey for the authorization header which is passed with x-portkey-api-key header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed api key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also remove it from here?
const cortexConfig = {
snowflakeAccount: requestHeaders[`x-${POWERED_BY}-snowflake-account`],
snowflakeApiKey: requestHeaders[`x-${POWERED_BY}-snowflake-api-key`],
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed snowflakeApiKey from cortexConfig.
Hey @Ajay-Satish-01 - LGTM. Please resolve the conflict and please also address the last remaining comment. Thanks! |
Done. Please let me know if anything else is needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀🚀🚀
Title:
Description:
🔄 What Changed
🔍 Impact of the Change
📁 Total Files Changed
🧪 Test Added
🔒 Security Vulnerabilities