Module crowdin_api.api_resources.ai.resource

Classes

class AIResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Resource for AI.

Link to documentation: https://developer.crowdin.com/api/v2/#tag/AI

Ancestors

Methods

def add_ai_custom_placeholder(self, user_id: int, body: AddAiCustomPlaceholderRequest)
def add_ai_prompt(self, userId: int, request_data: AddAIPromptRequestScheme)
def add_ai_provider(self, userId: int, request_data: AddAIProviderReqeustScheme)
def cancel_ai_prompt_completion(self, user_id: int, ai_prompt_id: int, completion_id: str)
def check_ai_report_generation_status(self, user_id: int, ai_report_id: str)
def clone_ai_prompt(self, user_id: int, ai_prompt_id: int, name: Optional[str] = None)
def create_ai_prompt_fine_tuning_job(self, user_id: int, ai_prompt_id: int, request_data: CreateAIPromptFineTuningJobRequest)
def create_ai_proxy_chat_completion(self, userId: int, aiProviderId: int, request_data: Union[GoogleGeminiChatProxyOtherChatProxy])

Create AI Proxy Chat Completion

This API method serves as an intermediary, forwarding your requests directly to the selected provider. Please refer to the documentation for the specific provider you use to determine the required payload format.

Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.users.ai.providers.chat.completions.post

def delete_ai_custom_placeholder(self, user_id: int, ai_custom_placeholder_id: int)
def delete_ai_prompt(self, userId: int, aiPromptId: int)
def delete_ai_provider(self, userId: int, aiProviderId: int)
def download_ai_prompt_completion(self, user_id: int, ai_prompt_id: int, completion_id: str)
def download_ai_prompt_fine_tuning_dataset(self, user_id: int, ai_prompt_id: int, job_identifier: str)
def download_ai_report(self, user_id: int, ai_report_id: str)
def edit_ai_custom_placeholder(self, user_id: int, ai_custom_placeholder_id: int, patches: Iterable[EditAiCustomPlaceholderPatch])
def edit_ai_prompt(self, userId: int, aiPromptId: int, request_data: Iterable[EditAIPromptScheme])
def edit_ai_provider(self, userId: int, aiProviderId: int, request_data: EditAIProviderRequestScheme)
def edit_ai_settings(self, user_id: int, patches: Iterable[EditAiSettingsPatch])
def generate_ai_prompt_completion(self, user_id: int, ai_prompt_id: int, request: GenerateAiPromptCompletionRequest)
def generate_ai_prompt_fine_tuning_dataset(self, user_id: int, ai_prompt_id: int, request_data: GenerateAIPromptFineTuningDatasetRequest)
def generate_ai_report(self, user_id: int, request: GenerateAiReportRequest)
def get_ai_custom_placeholder(self, user_id: int, ai_custom_placeholder_id: int)
def get_ai_custom_placeholders_path(self, user_id: int, custom_placeholder_id: Optional[int] = None)
def get_ai_path(self, userId: int, aiPromptId: Optional[int] = None)
def get_ai_prompt(self, userId: int, aiPromptId: int)
def get_ai_prompt_completion_status(self, user_id: int, ai_prompt_id: int, completion_id: str)
def get_ai_prompt_completions_path(self, user_id: int, ai_prompt_id: int, completion_id: Optional[str] = None)
def get_ai_prompt_fine_tuning_dataset_generation_status(self, user_id: int, ai_prompt_id: int, job_identifier: str)

Get AI Prompt Fine-Tuning Dataset Generation Status

Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/AI/operation/api.users.ai.prompts.fine-tuning.datasets.get

def get_ai_prompt_fine_tuning_datasets_path(self, user_id: int, ai_prompt_id: Optional[int] = None, job_identifier: Optional[str] = None)
def get_ai_prompt_fine_tuning_job_status(self, user_id: int, ai_prompt_id: int, job_identifier: str)
def get_ai_prompt_fine_tuning_jobs_path(self, user_id: int, ai_prompt_id: Optional[int] = None, job_identifier: Optional[str] = None)
def get_ai_provider(self, userId: int, aiProviderId: int)
def get_ai_provider_path(self, userId: int, aiProviderId: Optional[int] = None)
def get_ai_reports_path(self, user_id: int, ai_report_id: Optional[str] = None)
def get_ai_settings(self, user_id: int)
def get_ai_settings_path(self, user_id: int)
def list_ai_custom_placeholders(self, user_id: int)
def list_ai_prompt_fine_tuning_events(self, user_id: int, ai_prompt_id: int, job_identifier: str)
def list_ai_prompt_fine_tuning_jobs(self, user_id: int, statuses: Optional[Iterable[AiPromptFineTuningJobStatus]] = None, order_by: Optional[Sorting] = None, limit: Optional[int] = None, offset: Optional[int] = None)
def list_ai_prompts(self, userId: int, projectId: Optional[int] = None, action: Optional[AIPromptAction] = None, limit: Optional[int] = None, offset: Optional[int] = None)
def list_ai_provider_models(self, userId: int, aiProviderId: int)
def list_ai_providers(self, userId: int, limit: Optional[int] = None, offset: Optional[int] = None)
class EnterpriseAIResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Enterprise Resource for AI.

Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#tag/AI

Ancestors

Methods

def add_ai_custom_placeholder(self, body: AddAiCustomPlaceholderRequest)
def add_ai_prompt(self, request_data: AddAIPromptRequestScheme)
def add_ai_provider(self, request_data: AddAIProviderReqeustScheme)
def cancel_ai_prompt_completion(self, ai_prompt_id: int, completion_id: str)
def check_ai_report_generation_status(self, ai_report_id: str)
def clone_ai_prompt(self, ai_prompt_id: int, name: Optional[str] = None)
def create_ai_prompt_fine_tuning_job(self, ai_prompt_id: int, request_data: CreateAIPromptFineTuningJobRequest)
def create_ai_proxy_chat_completion(self, aiProviderId: int, request_data: Union[GoogleGeminiChatProxyOtherChatProxy])

Create AI Proxy Chat Completion

This API method serves as an intermediary, forwarding your requests directly to the selected provider. Please refer to the documentation for the specific provider you use to determine the required payload format.

Link to documentation: https://developer.crowdin.com/enterprise/api/v2/#operation/api.ai.providers.chat.completions.post

def delete_ai_custom_placeholder(self, ai_custom_placeholder_id: int)
def delete_ai_prompt(self, aiPromptId: int)
def delete_ai_provider(self, aiProviderId: int)
def download_ai_prompt_completion(self, ai_prompt_id: int, completion_id: str)
def download_ai_prompt_fine_tuning_dataset(self, ai_prompt_id: int, job_identifier: str)
def download_ai_report(self, ai_report_id: str)
def edit_ai_custom_placeholder(self, ai_custom_placeholder_id: int, patches: Iterable[EditAiCustomPlaceholderPatch])
def edit_ai_prompt(self, aiPromptId: int, request_data: Iterable[EditAIPromptScheme])
def edit_ai_provider(self, aiProviderId: int, request_data: EditAIProviderRequestScheme)
def edit_ai_settings(self, patches: Iterable[EditAiSettingsPatch])
def generate_ai_prompt_completion(self, ai_prompt_id: int, request: GenerateAiPromptCompletionRequest)
def generate_ai_prompt_fine_tuning_dataset(self, ai_prompt_id: int, request_data: GenerateAIPromptFineTuningDatasetRequest)
def generate_ai_report(self, request: GenerateAiReportRequest)
def get_ai_custom_placeholder(self, ai_custom_placeholder_id: int)
def get_ai_custom_placeholders_path(self, ai_custom_placeholder_id: Optional[int] = None)
def get_ai_path(self, aiPromptId: Optional[int] = None)
def get_ai_prompt(self, aiPromptId: int)
def get_ai_prompt_completion_status(self, ai_prompt_id: int, completion_id: str)
def get_ai_prompt_completions_path(self, ai_prompt_id: int, completion_id: Optional[str] = None)
def get_ai_prompt_fine_tuning_dataset_generation_status(self, ai_prompt_id: int, job_identifier: str)
def get_ai_prompt_fine_tuning_datasets_path(self, ai_prompt_id: int, job_identifier: Optional[str] = None)
def get_ai_prompt_fine_tuning_job_status(self, ai_prompt_id: int, job_identifier: str)
def get_ai_prompt_fine_tuning_jobs_path(self, ai_prompt_id: int, job_identifier: Optional[str] = None)
def get_ai_provider(self, aiProviderId: int)
def get_ai_provider_path(self, aiProviderId: Optional[int] = None)
def get_ai_reports_path(self, ai_report_id: Optional[str] = None)
def get_ai_settings(self)
def list_ai_custom_placeholders(self)
def list_ai_prompt_fine_tuning_events(self, ai_prompt_id: int, job_identifier: str)
def list_ai_prompt_fine_tuning_jobs(self, statuses: Optional[Iterable[AiPromptFineTuningJobStatus]] = None, order_by: Optional[Sorting] = None, limit: Optional[int] = None, offset: Optional[int] = None)
def list_ai_prompts(self, projectId: Optional[int] = None, action: Optional[AIPromptAction] = None, limit: Optional[int] = None, offset: Optional[int] = None)
def list_ai_provider_models(self, aiProviderId: int)
def list_ai_providers(self, limit: Optional[int] = None, offset: Optional[int] = None)