Skip to content

Commit 258ce73

Browse files
Copilotfriggeri
andauthored
Replace Literal model type with string in Python SessionConfig (github#325)
* Initial plan * Change SessionConfig model field from Literal to str Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
1 parent 92c30b7 commit 258ce73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/copilot/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class SessionConfig(TypedDict, total=False):
425425
"""Configuration for creating a session"""
426426

427427
session_id: str # Optional custom session ID
428-
model: Literal["gpt-5", "claude-sonnet-4", "claude-sonnet-4.5", "claude-haiku-4.5"]
428+
model: str # Model to use for this session. Use client.list_models() to see available models.
429429
# Reasoning effort level for models that support it.
430430
# Only valid for models where capabilities.supports.reasoning_effort is True.
431431
reasoning_effort: ReasoningEffort

0 commit comments

Comments
 (0)