Raw schema
{
"type": "object",
"properties": {
"photo": {
"anyOf": [
{
"$ref": "#/$defs/OpenAIFile"
},
{
"type": "null"
}
],
"default": null,
"description": "The photo of the page the person attached"
},
"page_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "A page already on FamilyLore that hasn't been read, from FamilyLore's own photo upload",
"title": "Page Id"
},
"language": {
"anyOf": [
{
"enum": [
"ru_uk",
"de_kurrent",
"yi",
"en"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The letter's language, if the person says it or it is plain: ru_uk = Russian or Ukrainian, de_kurrent = German (Kurrent or Sütterlin), yi = Yiddish, en = English (old cursive). Leave it out and FamilyLore tells.",
"title": "Language"
},
"year": {
"anyOf": [
{
"maximum": 2100,
"minimum": 1500,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The year it was written, if the person knows it roughly (1912 for 'about 1912')",
"title": "Year"
},
"target_language": {
"anyOf": [
{
"enum": [
"en",
"de",
"ru",
"pl",
"it",
"fr",
"uk"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The language to translate it into: en (English), de (German), ru (Russian), pl (Polish), it (Italian), fr (French), uk (Ukrainian). English if left out.",
"title": "Target Language"
}
},
"$defs": {
"OpenAIFile": {
"description": "A file the person attached in ChatGPT.",
"properties": {
"download_url": {
"description": "The file's temporary download address",
"title": "Download Url",
"type": "string"
},
"file_id": {
"description": "The file's id in the chat",
"title": "File Id",
"type": "string"
},
"mime_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Mime Type"
},
"file_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "File Name"
}
},
"required": [
"download_url",
"file_id"
],
"title": "OpenAIFile",
"type": "object"
}
},
"title": "read_letterArguments"
}