mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 10:12:43 +08:00
refactor(web): convert 7 enums to as-const objects (batch 5) (#33960)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
* Model provider quota types - shared type definitions for API responses
|
||||
* These represent the provider identifiers that support paid/trial quotas
|
||||
*/
|
||||
export enum ModelProviderQuotaGetPaid {
|
||||
ANTHROPIC = 'langgenius/anthropic/anthropic',
|
||||
OPENAI = 'langgenius/openai/openai',
|
||||
// AZURE_OPENAI = 'langgenius/azure_openai/azure_openai',
|
||||
GEMINI = 'langgenius/gemini/google',
|
||||
X = 'langgenius/x/x',
|
||||
DEEPSEEK = 'langgenius/deepseek/deepseek',
|
||||
TONGYI = 'langgenius/tongyi/tongyi',
|
||||
}
|
||||
export const ModelProviderQuotaGetPaid = {
|
||||
ANTHROPIC: 'langgenius/anthropic/anthropic',
|
||||
OPENAI: 'langgenius/openai/openai',
|
||||
// AZURE_OPENAI: 'langgenius/azure_openai/azure_openai',
|
||||
GEMINI: 'langgenius/gemini/google',
|
||||
X: 'langgenius/x/x',
|
||||
DEEPSEEK: 'langgenius/deepseek/deepseek',
|
||||
TONGYI: 'langgenius/tongyi/tongyi',
|
||||
} as const
|
||||
export type ModelProviderQuotaGetPaid = typeof ModelProviderQuotaGetPaid[keyof typeof ModelProviderQuotaGetPaid]
|
||||
|
||||
@@ -455,12 +455,13 @@ export type PanelProps = {
|
||||
export type NodeRunResult = NodeTracing
|
||||
|
||||
// Var Inspect
|
||||
export enum VarInInspectType {
|
||||
conversation = 'conversation',
|
||||
environment = 'env',
|
||||
node = 'node',
|
||||
system = 'sys',
|
||||
}
|
||||
export const VarInInspectType = {
|
||||
conversation: 'conversation',
|
||||
environment: 'env',
|
||||
node: 'node',
|
||||
system: 'sys',
|
||||
} as const
|
||||
export type VarInInspectType = typeof VarInInspectType[keyof typeof VarInInspectType]
|
||||
|
||||
export type FullContent = {
|
||||
size_bytes: number
|
||||
|
||||
Reference in New Issue
Block a user