Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configurations/clients/sample/channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ channels:
llm_model_config:
deployment: "gpt-4.1-2025-04-14"
out_of_scope:
llm_model_config:
deployment: "gpt-4.1-2025-04-14"
use_general_topics_blacklist: true
domain: "Statistics, economics and SDMX."
token_usage:
Expand Down
2 changes: 1 addition & 1 deletion statgpt/app/chains/out_of_scope_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def _stream_response(self, inputs: dict) -> dict:

model = get_chat_model(
api_key=auth_context.api_key,
model_config=self._channel_config.supreme_agent.llm_model_config,
model_config=self._channel_config.out_of_scope.llm_model_config,
)

checker_chain = checker_prompt | model.with_structured_output(
Expand Down
4 changes: 4 additions & 0 deletions statgpt/common/schemas/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class SupremeAgentConfig(BaseYamlModel):


class OutOfScopeConfig(BaseYamlModel):
llm_model_config: LLMModelConfig = Field(
default_factory=LLMModelConfig,
description="LLM model configuration for guardrails.",
)
domain: str = Field(
description="The domain of the chat bot. Other domains are considered out of scope."
)
Expand Down
Loading