Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.89 KB

File metadata and controls

34 lines (25 loc) · 1.89 KB

TranslateDictionaryRequest

Properties

Name Type Description Notes
word str The word to look up
word_language str Language code (ISO-639) of the word, or "auto" for automatic detection [optional] [default to 'en']
definition_language str Language code (ISO-639) for the definition output [optional] [default to 'en']
stream bool Whether to return a streaming response with fields sent as they become available [optional] [default to False]
nsfw bool Whether to allow NSFW/inappropriate content. If false, returns empty definition for inappropriate words [optional] [default to True]
model str Optional model identifier. Can be either a model name (e.g., "gpt-4o", "claude-35-sonnet", "gemini-flash-2.0") or a model constant (e.g., "ANTHROPIC_CLAUDE_35_SONNET", "OPENAI_GPT4O"). See model-selection.ts for full list. [optional]

Example

from openapi_client.models.translate_dictionary_request import TranslateDictionaryRequest

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

# convert the object into a dict
translate_dictionary_request_dict = translate_dictionary_request_instance.to_dict()
# create an instance of TranslateDictionaryRequest from a dict
translate_dictionary_request_from_dict = TranslateDictionaryRequest.from_dict(translate_dictionary_request_dict)

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