📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
generative_ai_inference
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/generative_ai_inference/models/__pycache__
💾
Free:
45.4 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: cohere_llm_inference_request.cpython-39.pyc
a ���f�Q � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�LlmInferenceRequest� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dd� Z ed d � �Zej dd � �Zedd � �Zej dd � �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej d d� �Zed!d"� �Zej d#d"� �Zed$d%� �Zej d&d%� �Zed'd(� �Zej d)d(� �Zed*d+� �Zej d,d+� �Zed-d.� �Zej d/d.� �Zd0d1� Zd2d3� Zd4d5� Zd6S )7�CohereLlmInferenceRequestzD Details for the text generation request for Cohere models. �NONE�ALL� GENERATION�START�ENDc K s� ddddddddddddddd�| _ ddd d ddd dddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )a� Initializes a new CohereLlmInferenceRequest object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.CohereLlmInferenceRequest.runtime_type` attribute of this class is ``COHERE`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param runtime_type: The value to assign to the runtime_type property of this CohereLlmInferenceRequest. Allowed values for this property are: "COHERE", "LLAMA" :type runtime_type: str :param prompt: The value to assign to the prompt property of this CohereLlmInferenceRequest. :type prompt: str :param is_stream: The value to assign to the is_stream property of this CohereLlmInferenceRequest. :type is_stream: bool :param num_generations: The value to assign to the num_generations property of this CohereLlmInferenceRequest. :type num_generations: int :param is_echo: The value to assign to the is_echo property of this CohereLlmInferenceRequest. :type is_echo: bool :param max_tokens: The value to assign to the max_tokens property of this CohereLlmInferenceRequest. :type max_tokens: int :param temperature: The value to assign to the temperature property of this CohereLlmInferenceRequest. :type temperature: float :param top_k: The value to assign to the top_k property of this CohereLlmInferenceRequest. :type top_k: int :param top_p: The value to assign to the top_p property of this CohereLlmInferenceRequest. :type top_p: float :param frequency_penalty: The value to assign to the frequency_penalty property of this CohereLlmInferenceRequest. :type frequency_penalty: float :param presence_penalty: The value to assign to the presence_penalty property of this CohereLlmInferenceRequest. :type presence_penalty: float :param stop_sequences: The value to assign to the stop_sequences property of this CohereLlmInferenceRequest. :type stop_sequences: list[str] :param return_likelihoods: The value to assign to the return_likelihoods property of this CohereLlmInferenceRequest. Allowed values for this property are: "NONE", "ALL", "GENERATION" :type return_likelihoods: str :param truncate: The value to assign to the truncate property of this CohereLlmInferenceRequest. Allowed values for this property are: "NONE", "START", "END" :type truncate: str �str�bool�int�floatz list[str])Zruntime_type�prompt� is_stream�num_generations�is_echo� max_tokens�temperature�top_k�top_p�frequency_penalty�presence_penalty�stop_sequences�return_likelihoods�truncateZruntimeTyper ZisStreamZnumGenerationsZisEchoZ maxTokensr ZtopKZtopPZfrequencyPenaltyZpresencePenaltyZ stopSequencesZreturnLikelihoodsr NZCOHERE)Z swagger_typesZ attribute_mapZ _runtime_type�_prompt� _is_stream�_num_generations�_is_echo�_max_tokens�_temperature�_top_k�_top_p�_frequency_penalty�_presence_penalty�_stop_sequences�_return_likelihoods� _truncate)�self�kwargs� r. �c/usr/lib/python3.9/site-packages/oci/generative_ai_inference/models/cohere_llm_inference_request.py�__init__* sZ C��z"CohereLlmInferenceRequest.__init__c C s | j S )a **[Required]** Gets the prompt of this CohereLlmInferenceRequest. Represents the prompt to be completed. The trailing white spaces are trimmed before completion. :return: The prompt of this CohereLlmInferenceRequest. :rtype: str �r �r, r. r. r/ r � s z CohereLlmInferenceRequest.promptc C s || _ dS )a Sets the prompt of this CohereLlmInferenceRequest. Represents the prompt to be completed. The trailing white spaces are trimmed before completion. :param prompt: The prompt of this CohereLlmInferenceRequest. :type: str Nr1 )r, r r. r. r/ r � s c C s | j S )a# Gets the is_stream of this CohereLlmInferenceRequest. Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. :return: The is_stream of this CohereLlmInferenceRequest. :rtype: bool �r r2 r. r. r/ r � s z#CohereLlmInferenceRequest.is_streamc C s || _ dS )a+ Sets the is_stream of this CohereLlmInferenceRequest. Whether to stream back partial progress. If set, tokens are sent as data-only server-sent events as they become available. :param is_stream: The is_stream of this CohereLlmInferenceRequest. :type: bool Nr3 )r, r r. r. r/ r � s c C s | j S )z� Gets the num_generations of this CohereLlmInferenceRequest. The number of generated texts that will be returned. :return: The num_generations of this CohereLlmInferenceRequest. :rtype: int �r! r2 r. r. r/ r � s z)CohereLlmInferenceRequest.num_generationsc C s || _ dS )z� Sets the num_generations of this CohereLlmInferenceRequest. The number of generated texts that will be returned. :param num_generations: The num_generations of this CohereLlmInferenceRequest. :type: int Nr4 )r, r r. r. r/ r � s c C s | j S )a Gets the is_echo of this CohereLlmInferenceRequest. Whether or not to return the user prompt in the response. This option only applies to non-stream results. :return: The is_echo of this CohereLlmInferenceRequest. :rtype: bool �r"