mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix code quality check
This commit is contained in:
parent
7dd55ce70c
commit
69b47cf738
1 changed files with 5 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
import httpx
|
||||
from typing import List, Optional
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class SnowflakeBase:
|
||||
def validate_environment(
|
||||
|
@ -17,22 +17,18 @@ class SnowflakeBase:
|
|||
"Accept": "application/json",
|
||||
"Authorization": "Bearer " + <JWT>,
|
||||
"X-Snowflake-Authorization-Token-Type": "KEYPAIR_JWT"
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
if JWT is None:
|
||||
raise ValueError(
|
||||
"Missing Snowflake JWT key"
|
||||
)
|
||||
raise ValueError("Missing Snowflake JWT key")
|
||||
|
||||
headers.update(
|
||||
{
|
||||
"Content-Type": "application/json",
|
||||
"Accept": "application/json",
|
||||
"Authorization": "Bearer " + JWT,
|
||||
"X-Snowflake-Authorization-Token-Type": "KEYPAIR_JWT"
|
||||
"X-Snowflake-Authorization-Token-Type": "KEYPAIR_JWT",
|
||||
}
|
||||
)
|
||||
return headers
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue