Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
generative_ai_inference
__pycache__
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: generative_ai_inference_client.cpython-39.pyc
a ���f�u � @ s� d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm Z d dl mZmZ d dl mZ d dlmZmZmZ d d lmZ d d lmZ ddlmZ ed �ZG dd� de�ZdS )� )�absolute_import)�requests)�six)�retry�circuit_breaker)� BaseClient)�get_config_value_or_default�validate_config)�Signer)�Sentinel�#get_signer_from_authentication_type�AUTHENTICATION_TYPE_FIELD_NAME)�InvalidAlloyConfig)�OCI_SDK_ENABLED_SERVICES_SET� )�$generative_ai_inference_type_mappingZMissingc @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �GenerativeAiInferenceClienta OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings. Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to [chat](#/en/generative-ai-inference/latest/ChatResult/Chat), [generate text](#/en/generative-ai-inference/latest/GenerateTextResult/GenerateText), [summarize](#/en/generative-ai-inference/latest/SummarizeTextResult/SummarizeText), and [create text embeddings](#/en/generative-ai-inference/latest/EmbedTextResult/EmbedText). To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](/#/en/generative-ai/latest/) to [create a custom model](#/en/generative-ai/latest/Model/) by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a [fine-tuning dedicated AI cluster](#/en/generative-ai/latest/DedicatedAiCluster/). Then, create a [hosting dedicated AI cluster](#/en/generative-ai/latest/DedicatedAiCluster/) with an [endpoint](#/en/generative-ai/latest/Endpoint/) to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](/#/en/generative-ai/latest/). To learn more about the service, see the [Generative AI documentation](/iaas/Content/generative-ai/home.htm). c K s& t �d�std��t||�d�d� d|v r6|d }nDt|v rHt|�}n2t|d |d |d |�d�t|d �|�d �d�}d|�d �ddi |�dd�|�dt j �|�d�d�}d|v r�|�d�|d<