beamlit 0.0.57rc108__py3-none-any.whl → 0.0.57rc110__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. beamlit/agents/chain.py +0 -2
  2. beamlit/agents/chat.py +1 -8
  3. beamlit/agents/decorator.py +5 -15
  4. beamlit/api/agents/delete_agent.py +1 -22
  5. beamlit/api/agents/get_agent.py +1 -22
  6. beamlit/api/agents/get_agent_metrics.py +13 -34
  7. beamlit/api/agents/get_agent_trace_ids.py +44 -14
  8. beamlit/api/agents/{list_agent_history.py → list_agent_revisions.py} +21 -17
  9. beamlit/api/agents/list_agents.py +4 -36
  10. beamlit/api/default/get_trace_ids.py +0 -15
  11. beamlit/api/default/list_mcp_hub_definitions.py +12 -12
  12. beamlit/api/functions/delete_function.py +1 -22
  13. beamlit/api/functions/get_function.py +1 -22
  14. beamlit/api/functions/get_function_metrics.py +13 -34
  15. beamlit/api/functions/get_function_trace_ids.py +44 -14
  16. beamlit/api/functions/{create_function_release.py → list_function_revisions.py} +26 -18
  17. beamlit/api/functions/list_functions.py +4 -36
  18. beamlit/api/knowledgebases/create_knowledgebase.py +4 -4
  19. beamlit/api/knowledgebases/delete_knowledgebase.py +5 -26
  20. beamlit/api/knowledgebases/get_knowledgebase.py +1 -22
  21. beamlit/api/{environments/get_environment_metrics.py → knowledgebases/list_knowledgebase_revisions.py} +34 -34
  22. beamlit/api/knowledgebases/list_knowledgebases.py +4 -36
  23. beamlit/api/models/create_model.py +4 -8
  24. beamlit/api/models/delete_model.py +1 -22
  25. beamlit/api/models/get_model.py +1 -22
  26. beamlit/api/models/get_model_metrics.py +13 -34
  27. beamlit/api/models/get_model_trace_ids.py +44 -14
  28. beamlit/api/models/{release_model.py → list_model_revisions.py} +26 -22
  29. beamlit/api/models/list_models.py +4 -36
  30. beamlit/api/models/update_model.py +4 -8
  31. beamlit/authentication/credentials.py +2 -7
  32. beamlit/common/settings.py +1 -4
  33. beamlit/deploy/deploy.py +5 -8
  34. beamlit/functions/mcp/mcp.py +3 -4
  35. beamlit/functions/remote/remote.py +1 -5
  36. beamlit/models/__init__.py +8 -38
  37. beamlit/models/agent.py +6 -6
  38. beamlit/models/function.py +6 -6
  39. beamlit/models/knowledgebase.py +6 -6
  40. beamlit/models/last_n_requests_metric.py +0 -9
  41. beamlit/models/model.py +7 -7
  42. beamlit/models/{resource_environment_metrics.py → resource_metrics.py} +20 -26
  43. beamlit/models/{resource_environment_metrics_request_total_per_code.py → resource_metrics_request_total_per_code.py} +5 -5
  44. beamlit/models/{resource_environment_metrics_rps_per_code.py → resource_metrics_rps_per_code.py} +5 -5
  45. beamlit/models/{model_release.py → revision_metadata.py} +20 -20
  46. beamlit/models/runtime.py +2 -2
  47. beamlit/models/workspace.py +0 -9
  48. beamlit/run.py +1 -4
  49. beamlit/serve/app.py +4 -8
  50. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/METADATA +1 -1
  51. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/RECORD +57 -86
  52. beamlit/api/agents/create_agent_release.py +0 -146
  53. beamlit/api/agents/delete_agent_history.py +0 -155
  54. beamlit/api/agents/get_agent_history.py +0 -155
  55. beamlit/api/agents/put_agent_history.py +0 -181
  56. beamlit/api/environments/__init__.py +0 -0
  57. beamlit/api/environments/create_environment.py +0 -167
  58. beamlit/api/environments/delete_environment.py +0 -154
  59. beamlit/api/environments/get_environment.py +0 -154
  60. beamlit/api/environments/list_environments.py +0 -139
  61. beamlit/api/environments/update_environment.py +0 -180
  62. beamlit/api/generation/__init__.py +0 -0
  63. beamlit/api/generation/run_information_generation_agent.py +0 -168
  64. beamlit/api/history/__init__.py +0 -0
  65. beamlit/api/history/get_agents_history.py +0 -155
  66. beamlit/api/history/list_agents_history.py +0 -131
  67. beamlit/models/agent_history.py +0 -167
  68. beamlit/models/agent_history_event.py +0 -133
  69. beamlit/models/agent_information_request.py +0 -63
  70. beamlit/models/agent_information_response.py +0 -79
  71. beamlit/models/agent_release.py +0 -70
  72. beamlit/models/environment.py +0 -96
  73. beamlit/models/environment_metadata.py +0 -148
  74. beamlit/models/environment_metrics.py +0 -77
  75. beamlit/models/environment_spec.py +0 -63
  76. beamlit/models/function_release.py +0 -70
  77. beamlit/models/knowledgebase_release.py +0 -70
  78. beamlit/models/mcp_hub_artifact.py +0 -188
  79. beamlit/models/mcp_hub_artifact_entrypoint.py +0 -45
  80. beamlit/models/mcp_hub_artifact_form.py +0 -45
  81. /beamlit/api/agents/{get_agent_environment_logs.py → get_agent_logs.py} +0 -0
  82. /beamlit/api/functions/{get_function_environment_logs.py → get_function_logs.py} +0 -0
  83. /beamlit/api/models/{get_model_environment_logs.py → get_model_logs.py} +0 -0
  84. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/WHEEL +0 -0
  85. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/entry_points.txt +0 -0
  86. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/licenses/LICENSE +0 -0
@@ -6,24 +6,15 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.knowledgebase import Knowledgebase
9
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  knowledgebase_name: str,
14
- *,
15
- environment: Union[Unset, str] = UNSET,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "get",
25
17
  "url": f"/knowledgebases/{knowledgebase_name}",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -53,7 +44,6 @@ def sync_detailed(
53
44
  knowledgebase_name: str,
54
45
  *,
55
46
  client: AuthenticatedClient,
56
- environment: Union[Unset, str] = UNSET,
57
47
  ) -> Response[Knowledgebase]:
58
48
  """Get knowledgebase
59
49
 
@@ -61,7 +51,6 @@ def sync_detailed(
61
51
 
62
52
  Args:
63
53
  knowledgebase_name (str):
64
- environment (Union[Unset, str]):
65
54
 
66
55
  Raises:
67
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -73,7 +62,6 @@ def sync_detailed(
73
62
 
74
63
  kwargs = _get_kwargs(
75
64
  knowledgebase_name=knowledgebase_name,
76
- environment=environment,
77
65
  )
78
66
 
79
67
  response = client.get_httpx_client().request(
@@ -87,7 +75,6 @@ def sync(
87
75
  knowledgebase_name: str,
88
76
  *,
89
77
  client: AuthenticatedClient,
90
- environment: Union[Unset, str] = UNSET,
91
78
  ) -> Optional[Knowledgebase]:
92
79
  """Get knowledgebase
93
80
 
@@ -95,7 +82,6 @@ def sync(
95
82
 
96
83
  Args:
97
84
  knowledgebase_name (str):
98
- environment (Union[Unset, str]):
99
85
 
100
86
  Raises:
101
87
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -108,7 +94,6 @@ def sync(
108
94
  return sync_detailed(
109
95
  knowledgebase_name=knowledgebase_name,
110
96
  client=client,
111
- environment=environment,
112
97
  ).parsed
113
98
 
114
99
 
@@ -116,7 +101,6 @@ async def asyncio_detailed(
116
101
  knowledgebase_name: str,
117
102
  *,
118
103
  client: AuthenticatedClient,
119
- environment: Union[Unset, str] = UNSET,
120
104
  ) -> Response[Knowledgebase]:
121
105
  """Get knowledgebase
122
106
 
@@ -124,7 +108,6 @@ async def asyncio_detailed(
124
108
 
125
109
  Args:
126
110
  knowledgebase_name (str):
127
- environment (Union[Unset, str]):
128
111
 
129
112
  Raises:
130
113
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -136,7 +119,6 @@ async def asyncio_detailed(
136
119
 
137
120
  kwargs = _get_kwargs(
138
121
  knowledgebase_name=knowledgebase_name,
139
- environment=environment,
140
122
  )
141
123
 
142
124
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -148,7 +130,6 @@ async def asyncio(
148
130
  knowledgebase_name: str,
149
131
  *,
150
132
  client: AuthenticatedClient,
151
- environment: Union[Unset, str] = UNSET,
152
133
  ) -> Optional[Knowledgebase]:
153
134
  """Get knowledgebase
154
135
 
@@ -156,7 +137,6 @@ async def asyncio(
156
137
 
157
138
  Args:
158
139
  knowledgebase_name (str):
159
- environment (Union[Unset, str]):
160
140
 
161
141
  Raises:
162
142
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,6 +150,5 @@ async def asyncio(
170
150
  await asyncio_detailed(
171
151
  knowledgebase_name=knowledgebase_name,
172
152
  client=client,
173
- environment=environment,
174
153
  )
175
154
  ).parsed
@@ -5,16 +5,16 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.environment_metrics import EnvironmentMetrics
8
+ from ...models.revision_metadata import RevisionMetadata
9
9
  from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
- environment_name: str,
13
+ knowledgebase_name: str,
14
14
  ) -> dict[str, Any]:
15
15
  _kwargs: dict[str, Any] = {
16
16
  "method": "get",
17
- "url": f"/environments/{environment_name}/metrics",
17
+ "url": f"/knowledgebases/{knowledgebase_name}/revisions",
18
18
  }
19
19
 
20
20
  return _kwargs
@@ -22,9 +22,9 @@ def _get_kwargs(
22
22
 
23
23
  def _parse_response(
24
24
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
25
- ) -> Optional[EnvironmentMetrics]:
25
+ ) -> Optional[RevisionMetadata]:
26
26
  if response.status_code == 200:
27
- response_200 = EnvironmentMetrics.from_dict(response.json())
27
+ response_200 = RevisionMetadata.from_dict(response.json())
28
28
 
29
29
  return response_200
30
30
  if client.raise_on_unexpected_status:
@@ -35,7 +35,7 @@ def _parse_response(
35
35
 
36
36
  def _build_response(
37
37
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
38
- ) -> Response[EnvironmentMetrics]:
38
+ ) -> Response[RevisionMetadata]:
39
39
  return Response(
40
40
  status_code=HTTPStatus(response.status_code),
41
41
  content=response.content,
@@ -45,27 +45,27 @@ def _build_response(
45
45
 
46
46
 
47
47
  def sync_detailed(
48
- environment_name: str,
48
+ knowledgebase_name: str,
49
49
  *,
50
50
  client: AuthenticatedClient,
51
- ) -> Response[EnvironmentMetrics]:
52
- """Get environment metrics
51
+ ) -> Response[RevisionMetadata]:
52
+ """List knowledgebase revisions
53
53
 
54
- Returns metrics for an environment by name.
54
+ Returns revisions for a knowledgebase by name.
55
55
 
56
56
  Args:
57
- environment_name (str):
57
+ knowledgebase_name (str):
58
58
 
59
59
  Raises:
60
60
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
61
61
  httpx.TimeoutException: If the request takes longer than Client.timeout.
62
62
 
63
63
  Returns:
64
- Response[EnvironmentMetrics]
64
+ Response[RevisionMetadata]
65
65
  """
66
66
 
67
67
  kwargs = _get_kwargs(
68
- environment_name=environment_name,
68
+ knowledgebase_name=knowledgebase_name,
69
69
  )
70
70
 
71
71
  response = client.get_httpx_client().request(
@@ -76,53 +76,53 @@ def sync_detailed(
76
76
 
77
77
 
78
78
  def sync(
79
- environment_name: str,
79
+ knowledgebase_name: str,
80
80
  *,
81
81
  client: AuthenticatedClient,
82
- ) -> Optional[EnvironmentMetrics]:
83
- """Get environment metrics
82
+ ) -> Optional[RevisionMetadata]:
83
+ """List knowledgebase revisions
84
84
 
85
- Returns metrics for an environment by name.
85
+ Returns revisions for a knowledgebase by name.
86
86
 
87
87
  Args:
88
- environment_name (str):
88
+ knowledgebase_name (str):
89
89
 
90
90
  Raises:
91
91
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
92
  httpx.TimeoutException: If the request takes longer than Client.timeout.
93
93
 
94
94
  Returns:
95
- EnvironmentMetrics
95
+ RevisionMetadata
96
96
  """
97
97
 
98
98
  return sync_detailed(
99
- environment_name=environment_name,
99
+ knowledgebase_name=knowledgebase_name,
100
100
  client=client,
101
101
  ).parsed
102
102
 
103
103
 
104
104
  async def asyncio_detailed(
105
- environment_name: str,
105
+ knowledgebase_name: str,
106
106
  *,
107
107
  client: AuthenticatedClient,
108
- ) -> Response[EnvironmentMetrics]:
109
- """Get environment metrics
108
+ ) -> Response[RevisionMetadata]:
109
+ """List knowledgebase revisions
110
110
 
111
- Returns metrics for an environment by name.
111
+ Returns revisions for a knowledgebase by name.
112
112
 
113
113
  Args:
114
- environment_name (str):
114
+ knowledgebase_name (str):
115
115
 
116
116
  Raises:
117
117
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
118
118
  httpx.TimeoutException: If the request takes longer than Client.timeout.
119
119
 
120
120
  Returns:
121
- Response[EnvironmentMetrics]
121
+ Response[RevisionMetadata]
122
122
  """
123
123
 
124
124
  kwargs = _get_kwargs(
125
- environment_name=environment_name,
125
+ knowledgebase_name=knowledgebase_name,
126
126
  )
127
127
 
128
128
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -131,28 +131,28 @@ async def asyncio_detailed(
131
131
 
132
132
 
133
133
  async def asyncio(
134
- environment_name: str,
134
+ knowledgebase_name: str,
135
135
  *,
136
136
  client: AuthenticatedClient,
137
- ) -> Optional[EnvironmentMetrics]:
138
- """Get environment metrics
137
+ ) -> Optional[RevisionMetadata]:
138
+ """List knowledgebase revisions
139
139
 
140
- Returns metrics for an environment by name.
140
+ Returns revisions for a knowledgebase by name.
141
141
 
142
142
  Args:
143
- environment_name (str):
143
+ knowledgebase_name (str):
144
144
 
145
145
  Raises:
146
146
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
147
147
  httpx.TimeoutException: If the request takes longer than Client.timeout.
148
148
 
149
149
  Returns:
150
- EnvironmentMetrics
150
+ RevisionMetadata
151
151
  """
152
152
 
153
153
  return (
154
154
  await asyncio_detailed(
155
- environment_name=environment_name,
155
+ knowledgebase_name=knowledgebase_name,
156
156
  client=client,
157
157
  )
158
158
  ).parsed
@@ -6,23 +6,13 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.knowledgebase import Knowledgebase
9
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
10
10
 
11
11
 
12
- def _get_kwargs(
13
- *,
14
- environment: Union[Unset, str] = UNSET,
15
- ) -> dict[str, Any]:
16
- params: dict[str, Any] = {}
17
-
18
- params["environment"] = environment
19
-
20
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
21
-
12
+ def _get_kwargs() -> dict[str, Any]:
22
13
  _kwargs: dict[str, Any] = {
23
14
  "method": "get",
24
15
  "url": "/knowledgebases",
25
- "params": params,
26
16
  }
27
17
 
28
18
  return _kwargs
@@ -60,15 +50,11 @@ def _build_response(
60
50
  def sync_detailed(
61
51
  *,
62
52
  client: AuthenticatedClient,
63
- environment: Union[Unset, str] = UNSET,
64
53
  ) -> Response[list["Knowledgebase"]]:
65
54
  """List knowledgebases
66
55
 
67
56
  Returns a list of all knowledgebases in the workspace.
68
57
 
69
- Args:
70
- environment (Union[Unset, str]):
71
-
72
58
  Raises:
73
59
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
74
60
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -77,9 +63,7 @@ def sync_detailed(
77
63
  Response[list['Knowledgebase']]
78
64
  """
79
65
 
80
- kwargs = _get_kwargs(
81
- environment=environment,
82
- )
66
+ kwargs = _get_kwargs()
83
67
 
84
68
  response = client.get_httpx_client().request(
85
69
  **kwargs,
@@ -91,15 +75,11 @@ def sync_detailed(
91
75
  def sync(
92
76
  *,
93
77
  client: AuthenticatedClient,
94
- environment: Union[Unset, str] = UNSET,
95
78
  ) -> Optional[list["Knowledgebase"]]:
96
79
  """List knowledgebases
97
80
 
98
81
  Returns a list of all knowledgebases in the workspace.
99
82
 
100
- Args:
101
- environment (Union[Unset, str]):
102
-
103
83
  Raises:
104
84
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
85
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -110,22 +90,17 @@ def sync(
110
90
 
111
91
  return sync_detailed(
112
92
  client=client,
113
- environment=environment,
114
93
  ).parsed
115
94
 
116
95
 
117
96
  async def asyncio_detailed(
118
97
  *,
119
98
  client: AuthenticatedClient,
120
- environment: Union[Unset, str] = UNSET,
121
99
  ) -> Response[list["Knowledgebase"]]:
122
100
  """List knowledgebases
123
101
 
124
102
  Returns a list of all knowledgebases in the workspace.
125
103
 
126
- Args:
127
- environment (Union[Unset, str]):
128
-
129
104
  Raises:
130
105
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
131
106
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -134,9 +109,7 @@ async def asyncio_detailed(
134
109
  Response[list['Knowledgebase']]
135
110
  """
136
111
 
137
- kwargs = _get_kwargs(
138
- environment=environment,
139
- )
112
+ kwargs = _get_kwargs()
140
113
 
141
114
  response = await client.get_async_httpx_client().request(**kwargs)
142
115
 
@@ -146,15 +119,11 @@ async def asyncio_detailed(
146
119
  async def asyncio(
147
120
  *,
148
121
  client: AuthenticatedClient,
149
- environment: Union[Unset, str] = UNSET,
150
122
  ) -> Optional[list["Knowledgebase"]]:
151
123
  """List knowledgebases
152
124
 
153
125
  Returns a list of all knowledgebases in the workspace.
154
126
 
155
- Args:
156
- environment (Union[Unset, str]):
157
-
158
127
  Raises:
159
128
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
129
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -166,6 +135,5 @@ async def asyncio(
166
135
  return (
167
136
  await asyncio_detailed(
168
137
  client=client,
169
- environment=environment,
170
138
  )
171
139
  ).parsed
@@ -59,8 +59,7 @@ def sync_detailed(
59
59
  Creates a model.
60
60
 
61
61
  Args:
62
- body (Model): Logical object representing a model, that can be instantiated in multiple
63
- environments as model deployments
62
+ body (Model): Logical object representing a model
64
63
 
65
64
  Raises:
66
65
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -91,8 +90,7 @@ def sync(
91
90
  Creates a model.
92
91
 
93
92
  Args:
94
- body (Model): Logical object representing a model, that can be instantiated in multiple
95
- environments as model deployments
93
+ body (Model): Logical object representing a model
96
94
 
97
95
  Raises:
98
96
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -118,8 +116,7 @@ async def asyncio_detailed(
118
116
  Creates a model.
119
117
 
120
118
  Args:
121
- body (Model): Logical object representing a model, that can be instantiated in multiple
122
- environments as model deployments
119
+ body (Model): Logical object representing a model
123
120
 
124
121
  Raises:
125
122
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -148,8 +145,7 @@ async def asyncio(
148
145
  Creates a model.
149
146
 
150
147
  Args:
151
- body (Model): Logical object representing a model, that can be instantiated in multiple
152
- environments as model deployments
148
+ body (Model): Logical object representing a model
153
149
 
154
150
  Raises:
155
151
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -6,24 +6,15 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.model import Model
9
- from ...types import UNSET, Response
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  model_name: str,
14
- *,
15
- environment: str,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "delete",
25
17
  "url": f"/models/{model_name}",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -53,7 +44,6 @@ def sync_detailed(
53
44
  model_name: str,
54
45
  *,
55
46
  client: AuthenticatedClient,
56
- environment: str,
57
47
  ) -> Response[Model]:
58
48
  """Delete model
59
49
 
@@ -61,7 +51,6 @@ def sync_detailed(
61
51
 
62
52
  Args:
63
53
  model_name (str):
64
- environment (str):
65
54
 
66
55
  Raises:
67
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -73,7 +62,6 @@ def sync_detailed(
73
62
 
74
63
  kwargs = _get_kwargs(
75
64
  model_name=model_name,
76
- environment=environment,
77
65
  )
78
66
 
79
67
  response = client.get_httpx_client().request(
@@ -87,7 +75,6 @@ def sync(
87
75
  model_name: str,
88
76
  *,
89
77
  client: AuthenticatedClient,
90
- environment: str,
91
78
  ) -> Optional[Model]:
92
79
  """Delete model
93
80
 
@@ -95,7 +82,6 @@ def sync(
95
82
 
96
83
  Args:
97
84
  model_name (str):
98
- environment (str):
99
85
 
100
86
  Raises:
101
87
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -108,7 +94,6 @@ def sync(
108
94
  return sync_detailed(
109
95
  model_name=model_name,
110
96
  client=client,
111
- environment=environment,
112
97
  ).parsed
113
98
 
114
99
 
@@ -116,7 +101,6 @@ async def asyncio_detailed(
116
101
  model_name: str,
117
102
  *,
118
103
  client: AuthenticatedClient,
119
- environment: str,
120
104
  ) -> Response[Model]:
121
105
  """Delete model
122
106
 
@@ -124,7 +108,6 @@ async def asyncio_detailed(
124
108
 
125
109
  Args:
126
110
  model_name (str):
127
- environment (str):
128
111
 
129
112
  Raises:
130
113
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -136,7 +119,6 @@ async def asyncio_detailed(
136
119
 
137
120
  kwargs = _get_kwargs(
138
121
  model_name=model_name,
139
- environment=environment,
140
122
  )
141
123
 
142
124
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -148,7 +130,6 @@ async def asyncio(
148
130
  model_name: str,
149
131
  *,
150
132
  client: AuthenticatedClient,
151
- environment: str,
152
133
  ) -> Optional[Model]:
153
134
  """Delete model
154
135
 
@@ -156,7 +137,6 @@ async def asyncio(
156
137
 
157
138
  Args:
158
139
  model_name (str):
159
- environment (str):
160
140
 
161
141
  Raises:
162
142
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,6 +150,5 @@ async def asyncio(
170
150
  await asyncio_detailed(
171
151
  model_name=model_name,
172
152
  client=client,
173
- environment=environment,
174
153
  )
175
154
  ).parsed
@@ -6,24 +6,15 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.model import Model
9
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  model_name: str,
14
- *,
15
- environment: Union[Unset, str] = UNSET,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "get",
25
17
  "url": f"/models/{model_name}",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -53,7 +44,6 @@ def sync_detailed(
53
44
  model_name: str,
54
45
  *,
55
46
  client: AuthenticatedClient,
56
- environment: Union[Unset, str] = UNSET,
57
47
  ) -> Response[Model]:
58
48
  """Get model
59
49
 
@@ -61,7 +51,6 @@ def sync_detailed(
61
51
 
62
52
  Args:
63
53
  model_name (str):
64
- environment (Union[Unset, str]):
65
54
 
66
55
  Raises:
67
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -73,7 +62,6 @@ def sync_detailed(
73
62
 
74
63
  kwargs = _get_kwargs(
75
64
  model_name=model_name,
76
- environment=environment,
77
65
  )
78
66
 
79
67
  response = client.get_httpx_client().request(
@@ -87,7 +75,6 @@ def sync(
87
75
  model_name: str,
88
76
  *,
89
77
  client: AuthenticatedClient,
90
- environment: Union[Unset, str] = UNSET,
91
78
  ) -> Optional[Model]:
92
79
  """Get model
93
80
 
@@ -95,7 +82,6 @@ def sync(
95
82
 
96
83
  Args:
97
84
  model_name (str):
98
- environment (Union[Unset, str]):
99
85
 
100
86
  Raises:
101
87
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -108,7 +94,6 @@ def sync(
108
94
  return sync_detailed(
109
95
  model_name=model_name,
110
96
  client=client,
111
- environment=environment,
112
97
  ).parsed
113
98
 
114
99
 
@@ -116,7 +101,6 @@ async def asyncio_detailed(
116
101
  model_name: str,
117
102
  *,
118
103
  client: AuthenticatedClient,
119
- environment: Union[Unset, str] = UNSET,
120
104
  ) -> Response[Model]:
121
105
  """Get model
122
106
 
@@ -124,7 +108,6 @@ async def asyncio_detailed(
124
108
 
125
109
  Args:
126
110
  model_name (str):
127
- environment (Union[Unset, str]):
128
111
 
129
112
  Raises:
130
113
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -136,7 +119,6 @@ async def asyncio_detailed(
136
119
 
137
120
  kwargs = _get_kwargs(
138
121
  model_name=model_name,
139
- environment=environment,
140
122
  )
141
123
 
142
124
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -148,7 +130,6 @@ async def asyncio(
148
130
  model_name: str,
149
131
  *,
150
132
  client: AuthenticatedClient,
151
- environment: Union[Unset, str] = UNSET,
152
133
  ) -> Optional[Model]:
153
134
  """Get model
154
135
 
@@ -156,7 +137,6 @@ async def asyncio(
156
137
 
157
138
  Args:
158
139
  model_name (str):
159
- environment (Union[Unset, str]):
160
140
 
161
141
  Raises:
162
142
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -170,6 +150,5 @@ async def asyncio(
170
150
  await asyncio_detailed(
171
151
  model_name=model_name,
172
152
  client=client,
173
- environment=environment,
174
153
  )
175
154
  ).parsed