Skip to content

Commit db29018

Browse files
committed
fix: Add gpt4.1, o3 to get_forecast
1 parent 933e17b commit db29018

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

asknews_sdk/api/chat.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,14 @@ def get_forecast(
197197
method: Literal["nl", "kw", "both"] = "kw",
198198
model: Literal[
199199
"gpt-4o",
200+
"gpt-4o-mini",
201+
"gpt-4.1-2025-04-14",
202+
"claude-3-5-sonnet-latest",
200203
"claude-3-5-sonnet-20240620",
201-
"command-nightly",
202-
"meta-llama/Meta-Llama-3.1-405B-Instruct",
203-
"o1-mini",
204-
"o3-mini",
205-
"o1-preview",
206-
] = "claude-3-5-sonnet-20240620",
204+
"claude-sonnet-4-20250514",
205+
"claude-opus-4-20250514" "o3-mini",
206+
"o3",
207+
] = "gpt-4.1-2025-04-14",
207208
cutoff_date: Optional[str] = None,
208209
use_reddit: bool = False,
209210
additional_context: Optional[str] = None,
@@ -735,12 +736,14 @@ async def get_forecast(
735736
method: Literal["nl", "kw", "both"] = "kw",
736737
model: Literal[
737738
"gpt-4o",
739+
"gpt-4o-mini",
740+
"gpt-4.1-2025-04-14",
741+
"claude-3-5-sonnet-latest",
738742
"claude-3-5-sonnet-20240620",
739-
"command-nightly",
740-
"meta-llama/Meta-Llama-3.1-405B-Instruct",
741-
"o1-mini",
742-
"o1-preview",
743-
] = "claude-3-5-sonnet-20240620",
743+
"claude-sonnet-4-20250514",
744+
"claude-opus-4-20250514" "o3-mini",
745+
"o3",
746+
] = "gpt-4.1-2025-04-14",
744747
cutoff_date: Optional[str] = None,
745748
use_reddit: bool = False,
746749
additional_context: Optional[str] = None,

0 commit comments

Comments
 (0)