1515 AsyncAPIKeysResourceWithStreamingResponse ,
1616)
1717from ...._types import Body , Omit , Query , Headers , NotGiven , SequenceNotStr , omit , not_given
18- from ...._utils import path_template , maybe_transform , async_maybe_transform
18+ from ...._utils import path_template , maybe_transform , strip_not_given , async_maybe_transform
1919from ...._compat import cached_property
2020from ...._resource import SyncAPIResource , AsyncAPIResource
2121from ...._response import (
@@ -66,6 +66,7 @@ def create(
6666 self ,
6767 * ,
6868 name : str ,
69+ x_org_id : str | Omit = omit ,
6970 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7071 # The extra values given here take precedence over values defined on the client or passed to this method.
7172 extra_headers : Headers | None = None ,
@@ -87,6 +88,7 @@ def create(
8788
8889 timeout: Override the client-level default timeout for this request, in seconds
8990 """
91+ extra_headers = {** strip_not_given ({"X-Org-Id" : x_org_id }), ** (extra_headers or {})}
9092 return self ._post (
9193 "/v1/sys/projects" ,
9294 body = maybe_transform ({"name" : name }, project_create_params .ProjectCreateParams ),
@@ -133,7 +135,6 @@ def update(
133135 self ,
134136 project_id : str ,
135137 * ,
136- is_public : Optional [bool ] | Omit = omit ,
137138 llm_model_group : Optional [str ] | Omit = omit ,
138139 locked : Optional [bool ] | Omit = omit ,
139140 name : Optional [str ] | Omit = omit ,
@@ -148,8 +149,6 @@ def update(
148149 Update Project
149150
150151 Args:
151- is_public: 是否公开项目
152-
153152 llm_model_group: 模型组
154153
155154 locked: 是否锁定
@@ -170,7 +169,6 @@ def update(
170169 path_template ("/v1/sys/projects/{project_id}" , project_id = project_id ),
171170 body = maybe_transform (
172171 {
173- "is_public" : is_public ,
174172 "llm_model_group" : llm_model_group ,
175173 "locked" : locked ,
176174 "name" : name ,
@@ -304,6 +302,7 @@ def import_(
304302 self ,
305303 * ,
306304 body : Dict [str , object ],
305+ x_org_id : str | Omit = omit ,
307306 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
308307 # The extra values given here take precedence over values defined on the client or passed to this method.
309308 extra_headers : Headers | None = None ,
@@ -323,6 +322,7 @@ def import_(
323322
324323 timeout: Override the client-level default timeout for this request, in seconds
325324 """
325+ extra_headers = {** strip_not_given ({"X-Org-Id" : x_org_id }), ** (extra_headers or {})}
326326 return self ._post (
327327 "/v1/sys/projects/import" ,
328328 body = maybe_transform (body , project_import_params .ProjectImportParams ),
@@ -383,6 +383,7 @@ async def create(
383383 self ,
384384 * ,
385385 name : str ,
386+ x_org_id : str | Omit = omit ,
386387 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
387388 # The extra values given here take precedence over values defined on the client or passed to this method.
388389 extra_headers : Headers | None = None ,
@@ -404,6 +405,7 @@ async def create(
404405
405406 timeout: Override the client-level default timeout for this request, in seconds
406407 """
408+ extra_headers = {** strip_not_given ({"X-Org-Id" : x_org_id }), ** (extra_headers or {})}
407409 return await self ._post (
408410 "/v1/sys/projects" ,
409411 body = await async_maybe_transform ({"name" : name }, project_create_params .ProjectCreateParams ),
@@ -450,7 +452,6 @@ async def update(
450452 self ,
451453 project_id : str ,
452454 * ,
453- is_public : Optional [bool ] | Omit = omit ,
454455 llm_model_group : Optional [str ] | Omit = omit ,
455456 locked : Optional [bool ] | Omit = omit ,
456457 name : Optional [str ] | Omit = omit ,
@@ -465,8 +466,6 @@ async def update(
465466 Update Project
466467
467468 Args:
468- is_public: 是否公开项目
469-
470469 llm_model_group: 模型组
471470
472471 locked: 是否锁定
@@ -487,7 +486,6 @@ async def update(
487486 path_template ("/v1/sys/projects/{project_id}" , project_id = project_id ),
488487 body = await async_maybe_transform (
489488 {
490- "is_public" : is_public ,
491489 "llm_model_group" : llm_model_group ,
492490 "locked" : locked ,
493491 "name" : name ,
@@ -621,6 +619,7 @@ async def import_(
621619 self ,
622620 * ,
623621 body : Dict [str , object ],
622+ x_org_id : str | Omit = omit ,
624623 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
625624 # The extra values given here take precedence over values defined on the client or passed to this method.
626625 extra_headers : Headers | None = None ,
@@ -640,6 +639,7 @@ async def import_(
640639
641640 timeout: Override the client-level default timeout for this request, in seconds
642641 """
642+ extra_headers = {** strip_not_given ({"X-Org-Id" : x_org_id }), ** (extra_headers or {})}
643643 return await self ._post (
644644 "/v1/sys/projects/import" ,
645645 body = await async_maybe_transform (body , project_import_params .ProjectImportParams ),
0 commit comments