Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.54 KB

File metadata and controls

36 lines (27 loc) · 1.54 KB

OpenAICompletionsRequest

Properties

Name Type Description Notes
prompt Prompt
stream bool [optional]
stream_options OpenAIStreamOptions [optional]
max_tokens int The maximum number of tokens to generate [optional] [default to 512]
model str The name of the model used for generating the completion
temperature float The temperature of the generated text [optional] [default to 0.7]
top_p float The top-p value for nucleus sampling [optional] [default to 0.9]
stop Stop1 [optional]

Example

from cms_client.models.open_ai_completions_request import OpenAICompletionsRequest

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

# convert the object into a dict
open_ai_completions_request_dict = open_ai_completions_request_instance.to_dict()
# create an instance of OpenAICompletionsRequest from a dict
open_ai_completions_request_from_dict = OpenAICompletionsRequest.from_dict(open_ai_completions_request_dict)

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