Skip to content

Commit

Permalink
set icl as default
Browse files Browse the repository at this point in the history
  • Loading branch information
= Enea_Gore committed Jan 12, 2025
1 parent fe6c9db commit 4cf793e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/text/module_text_llm/module_text_llm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
from module_text_llm.basic_approach import BasicApproachConfig
from module_text_llm.in_context_learning import InContextLearningConfig

ApproachConfigUnion = Union[BasicApproachConfig, ChainOfThoughtConfig, InContextLearningConfig]
ApproachConfigUnion = Union[InContextLearningConfig ,BasicApproachConfig, ChainOfThoughtConfig]

@config_schema_provider
class Configuration(BaseModel):
debug: bool = Field(default=False, description="Enable debug mode.")
approach: ApproachConfigUnion = Field(default_factory=BasicApproachConfig) # Default to BasicApproach
approach: ApproachConfigUnion = Field(default_factory=InContextLearningConfig) # Default to BasicApproach

class Config:
smart_union = True

0 comments on commit 4cf793e

Please sign in to comment.