Skip to content

Commit 363bfed

Browse files
authored
Merge pull request #173 from GitHubSecurityLab/p--dont-fail-on-unknown-default-model
don't fail on unknown default model
2 parents 794f19c + 26f33ce commit 363bfed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/seclab_taskflow_agent/agent.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
case AI_API_ENDPOINT_ENUM.AI_API_OPENAI:
4242
default_model = "gpt-4o"
4343
case _:
44-
raise ValueError(
45-
f"Unsupported Model Endpoint: {api_endpoint}\n"
46-
f"Supported endpoints: {[e.to_url() for e in AI_API_ENDPOINT_ENUM]}"
47-
)
44+
default_model = "please-set-default-model-via-env"
4845

4946
DEFAULT_MODEL = os.getenv("COPILOT_DEFAULT_MODEL", default=default_model)
5047

0 commit comments

Comments
 (0)