forked from langgenius/dify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'langgenius:main' into main
- Loading branch information
Showing
229 changed files
with
3,041 additions
and
8,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class SupabaseStorageConfig(BaseModel): | ||
""" | ||
Configuration settings for Supabase Object Storage Service | ||
""" | ||
|
||
SUPABASE_BUCKET_NAME: Optional[str] = Field( | ||
description="Name of the Supabase bucket to store and retrieve objects (e.g., 'dify-bucket')", | ||
default=None, | ||
) | ||
|
||
SUPABASE_API_KEY: Optional[str] = Field( | ||
description="API KEY for authenticating with Supabase", | ||
default=None, | ||
) | ||
|
||
SUPABASE_URL: Optional[str] = Field( | ||
description="URL of the Supabase", | ||
default=None, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from typing import Optional | ||
|
||
from pydantic import Field, NonNegativeInt, PositiveInt | ||
from pydantic_settings import BaseSettings | ||
|
||
|
||
class BaiduVectorDBConfig(BaseSettings): | ||
""" | ||
Configuration settings for Baidu Vector Database | ||
""" | ||
|
||
BAIDU_VECTOR_DB_ENDPOINT: Optional[str] = Field( | ||
description="URL of the Baidu Vector Database service (e.g., 'http://vdb.bj.baidubce.com')", | ||
default=None, | ||
) | ||
|
||
BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS: PositiveInt = Field( | ||
description="Timeout in milliseconds for Baidu Vector Database operations (default is 30000 milliseconds)", | ||
default=30000, | ||
) | ||
|
||
BAIDU_VECTOR_DB_ACCOUNT: Optional[str] = Field( | ||
description="Account for authenticating with the Baidu Vector Database", | ||
default=None, | ||
) | ||
|
||
BAIDU_VECTOR_DB_API_KEY: Optional[str] = Field( | ||
description="API key for authenticating with the Baidu Vector Database service", | ||
default=None, | ||
) | ||
|
||
BAIDU_VECTOR_DB_DATABASE: Optional[str] = Field( | ||
description="Name of the specific Baidu Vector Database to connect to", | ||
default=None, | ||
) | ||
|
||
BAIDU_VECTOR_DB_SHARD: PositiveInt = Field( | ||
description="Number of shards for the Baidu Vector Database (default is 1)", | ||
default=1, | ||
) | ||
|
||
BAIDU_VECTOR_DB_REPLICAS: NonNegativeInt = Field( | ||
description="Number of replicas for the Baidu Vector Database (default is 3)", | ||
default=3, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class VikingDBConfig(BaseModel): | ||
""" | ||
Configuration for connecting to Volcengine VikingDB. | ||
Refer to the following documentation for details on obtaining credentials: | ||
https://www.volcengine.com/docs/6291/65568 | ||
""" | ||
|
||
VIKINGDB_ACCESS_KEY: Optional[str] = Field( | ||
default=None, description="The Access Key provided by Volcengine VikingDB for API authentication." | ||
) | ||
VIKINGDB_SECRET_KEY: Optional[str] = Field( | ||
default=None, description="The Secret Key provided by Volcengine VikingDB for API authentication." | ||
) | ||
VIKINGDB_REGION: Optional[str] = Field( | ||
default="cn-shanghai", | ||
description="The region of the Volcengine VikingDB service.(e.g., 'cn-shanghai', 'cn-beijing').", | ||
) | ||
VIKINGDB_HOST: Optional[str] = Field( | ||
default="api-vikingdb.mlp.cn-shanghai.volces.com", | ||
description="The host of the Volcengine VikingDB service.(e.g., 'api-vikingdb.volces.com', \ | ||
'api-vikingdb.mlp.cn-shanghai.volces.com')", | ||
) | ||
VIKINGDB_SCHEME: Optional[str] = Field( | ||
default="http", | ||
description="The scheme of the Volcengine VikingDB service.(e.g., 'http', 'https').", | ||
) | ||
VIKINGDB_CONNECTION_TIMEOUT: Optional[int] = Field( | ||
default=30, description="The connection timeout of the Volcengine VikingDB service." | ||
) | ||
VIKINGDB_SOCKET_TIMEOUT: Optional[int] = Field( | ||
default=30, description="The socket timeout of the Volcengine VikingDB service." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.