You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
fromopenapi_client.models.translate_dictionary_requestimportTranslateDictionaryRequest# TODO update the JSON string belowjson="{}"# create an instance of TranslateDictionaryRequest from a JSON stringtranslate_dictionary_request_instance=TranslateDictionaryRequest.from_json(json)
# print the JSON string representation of the objectprint(TranslateDictionaryRequest.to_json())
# convert the object into a dicttranslate_dictionary_request_dict=translate_dictionary_request_instance.to_dict()
# create an instance of TranslateDictionaryRequest from a dicttranslate_dictionary_request_from_dict=TranslateDictionaryRequest.from_dict(translate_dictionary_request_dict)