|
14 | 14 | from ...parameters import TextParameter |
15 | 15 |
|
16 | 16 | MODELS: list[Model] = [ |
17 | | - Model( |
18 | | - id="grok-4-1-fast-reasoning", |
19 | | - provider=Provider.XAI, |
20 | | - display_name="Grok 4.1 Fast Reasoning", |
21 | | - operations={Modality.TEXT: {Operation.GENERATE}}, |
22 | | - streaming=True, |
23 | | - parameter_constraints={ |
24 | | - Parameter.TEMPERATURE: Range(min=0.0, max=2.0), |
25 | | - Parameter.MAX_TOKENS: Range(min=1, max=30000), |
26 | | - TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]), |
27 | | - TextParameter.TOOL_CHOICE: ToolChoiceSupport(), |
28 | | - TextParameter.OUTPUT_SCHEMA: Schema(), |
29 | | - }, |
30 | | - ), |
31 | | - Model( |
32 | | - id="grok-4-1-fast-non-reasoning", |
33 | | - provider=Provider.XAI, |
34 | | - display_name="Grok 4.1 Fast Non-Reasoning", |
35 | | - operations={Modality.TEXT: {Operation.GENERATE}}, |
36 | | - streaming=True, |
37 | | - parameter_constraints={ |
38 | | - Parameter.TEMPERATURE: Range(min=0.0, max=2.0), |
39 | | - Parameter.MAX_TOKENS: Range(min=1, max=30000), |
40 | | - TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]), |
41 | | - TextParameter.TOOL_CHOICE: ToolChoiceSupport(), |
42 | | - TextParameter.OUTPUT_SCHEMA: Schema(), |
43 | | - }, |
44 | | - ), |
45 | | - Model( |
46 | | - id="grok-4-fast-reasoning", |
47 | | - provider=Provider.XAI, |
48 | | - display_name="Grok 4 Fast Reasoning", |
49 | | - operations={Modality.TEXT: {Operation.GENERATE}}, |
50 | | - streaming=True, |
51 | | - parameter_constraints={ |
52 | | - Parameter.TEMPERATURE: Range(min=0.0, max=2.0), |
53 | | - Parameter.MAX_TOKENS: Range(min=1, max=30000), |
54 | | - TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]), |
55 | | - TextParameter.TOOL_CHOICE: ToolChoiceSupport(), |
56 | | - TextParameter.OUTPUT_SCHEMA: Schema(), |
57 | | - }, |
58 | | - ), |
59 | | - Model( |
60 | | - id="grok-4-fast-non-reasoning", |
61 | | - provider=Provider.XAI, |
62 | | - display_name="Grok 4 Fast Non-Reasoning", |
63 | | - operations={Modality.TEXT: {Operation.GENERATE}}, |
64 | | - streaming=True, |
65 | | - parameter_constraints={ |
66 | | - Parameter.TEMPERATURE: Range(min=0.0, max=2.0), |
67 | | - Parameter.MAX_TOKENS: Range(min=1, max=30000), |
68 | | - TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]), |
69 | | - TextParameter.TOOL_CHOICE: ToolChoiceSupport(), |
70 | | - TextParameter.OUTPUT_SCHEMA: Schema(), |
71 | | - }, |
72 | | - ), |
73 | | - Model( |
74 | | - id="grok-4-0709", |
75 | | - provider=Provider.XAI, |
76 | | - display_name="Grok 4", |
77 | | - operations={Modality.TEXT: {Operation.GENERATE}}, |
78 | | - streaming=True, |
79 | | - parameter_constraints={ |
80 | | - Parameter.TEMPERATURE: Range(min=0.0, max=2.0), |
81 | | - Parameter.MAX_TOKENS: Range(min=1, max=64000), |
82 | | - TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]), |
83 | | - TextParameter.TOOL_CHOICE: ToolChoiceSupport(), |
84 | | - TextParameter.OUTPUT_SCHEMA: Schema(), |
85 | | - }, |
86 | | - ), |
87 | 17 | Model( |
88 | 18 | id="grok-4.20-beta-0309-reasoning", |
89 | 19 | provider=Provider.XAI, |
|
0 commit comments