Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 3.99 KB

AiCreateProfileInput.md

File metadata and controls

42 lines (34 loc) · 3.99 KB

AiCreateProfileInput

Input for creating a new profile — the same shape as Profile without the engine-generated fields (id, createdAt).

Properties

Name Type Description Notes
name str User-defined profile display name.
provider_type AiProviderType Provider type for this profile. Use external to delegate all HTTP transport to PlatformAdapter.externalFetch while reusing an existing provider's response parser — see Profile.basedOn for the format selector.
based_on AiBuiltinProviderType Selects the response-format parser used by the external provider. Ignored for any other providerType. Supported values are openai, anthropic, mistral and openrouter. Remaining values (genai, stabilityai, …) are accepted by the type but not yet implemented; passing one raises an error at request time. [optional]
base_url str Base URL of the provider API.
key str API key or token. Optional for local providers. [optional]
headers Dict[str, str] Extra HTTP headers sent with every request to this provider. Merged into the SDK client's default headers; an explicit Authorization here wins over the one derived from key. Honoured by the OpenAI-family providers. [optional]
model_id str Selected model ID within this provider.
reasoning bool Whether extended thinking is enabled for this profile's model. [optional]
reasoning_support AiReasoningSupport Extended-thinking capabilities of the selected model as reported by the provider's catalogue at save time (see Model.reasoningSupport). When present the composer's Effort row follows it exactly; when absent the provider's id-based table answers. Hosts persist it with the rest of the profile. [optional]
capabilities float Bitmask of capabilities supported by the selected model. [optional]
can_use_tool bool Result of the live tool-capability probe performed at create time and on changes to modelId / providerType / baseUrl. undefined means the probe has never run for this profile (legacy record). [optional]
use_responses_api bool Result of the live Responses-API probe (parallel to canUseTool). true means the model speaks /v1/responses and the OpenAI provider must route through client.responses.create — required for gpt-5+ reasoning models that reject reasoning_effort together with tools on /v1/chat/completions. Probed at create time and whenever modelId / providerType / baseUrl change. undefined means the probe never ran (legacy record) — readers treat that as false. [optional]
is_cloud_provider bool Whether this profile uses a cloud-hosted provider (e.g. ONLYOFFICE DocSpace). [optional]
use_proxy bool Route every provider request through the host's fetchProxy instead of the global fetch. Useful when the host runs the widget in a sandbox without direct network access (CORS, custom auth, etc.). Has no effect when the PlatformAdapter.fetchProxy is not configured. [optional]

Example

from docspace_api_sdk.models.ai_create_profile_input import AiCreateProfileInput

# TODO update the JSON string below
json = "{}"
# create an instance of AiCreateProfileInput from a JSON string
ai_create_profile_input_instance = AiCreateProfileInput.from_json(json)
# print the JSON string representation of the object
print(AiCreateProfileInput.to_json())

# convert the object into a dict
ai_create_profile_input_dict = ai_create_profile_input_instance.to_dict()
# create an instance of AiCreateProfileInput from a dict
ai_create_profile_input_from_dict = AiCreateProfileInput.from_dict(ai_create_profile_input_dict)

[Back to Model list] [Back to API list] [Back to README]