This commit is contained in:
Hamza-Ayed
2024-07-18 15:29:25 +03:00
parent c28ff91708
commit 53f3114ed1
3 changed files with 193 additions and 49 deletions

View File

@@ -455,26 +455,27 @@ Important notes:
IconButton(
onPressed: () async {
await ai.allMethodForAI("""
Given the following Arabic text values:
Given the following Arabic text values:
Please create a JSON object with the following fields:
- nationalID (use exactly 14 digits, no more and no less)
- issueDate (in format YYYY-MM-DD using Latin numerals)
- occupation
- gender
- country
- religion
- maritalStatus
- fullNameMarital (if maritalStatus is "أعزب", set this to "none")
- expirationDate (in format YYYY-MM-DD using Latin numerals)
nationalID: Use exactly 14 digits, converting from Arabic numerals to Latin numerals (0-9).
issueDate: Format as YYYY-MM-DD using Latin numerals, setting the date to the last day of the provided month.
occupation: Translate and format consistently (e.g., all lowercase).
gender: Translate and format consistently (e.g., all lowercase).
country: Set to "egypt".
religion: Translate and format consistently (e.g., all lowercase).
maritalStatus: Translate and format consistently (e.g., all lowercase).
fullNameMarital: If maritalStatus is "أعزب", set this to "none". Otherwise, leave it as "none".
expirationDate: Format as YYYY-MM-DD using Latin numerals.
Important notes:
1. Ensure all date fields use Latin (Western) numerals (0-9) instead of Arabic numerals.
2. For the nationalID, use exactly 14 digits from the provided Arabic numeral string, converting to Latin numerals.
3. For issueDate, use the last day of the month since only year and month are provided.
4. Include the country field based on the provided information.
5. Format all string values consistently (e.g., all lowercase or proper case).
Ensure all date fields use Latin (Western) numerals (0-9) instead of Arabic numerals.
For the nationalID, use exactly 14 digits from the provided Arabic numeral string, converting to Latin numerals.
For issueDate, use the last day of the month since only year and month are provided.
Include the country field as "egypt".
Format all string values consistently (e.g., all lowercase or proper case).
Please provide the resulting JSON object. """, AppLink.uploadEgypt,
'id_back'); //egypt
},
@@ -545,27 +546,28 @@ Please provide the resulting JSON object. """, AppLink.uploadEgypt,
child: InkWell(
onTap: () async {
await ai.allMethodForAI('''
Given the following Arabic text values:
Given the following Arabic text values:
Please create a JSON object with the following fields:
- nationalID (use exactly 14 digits, no more and no less)
- issueDate (in format YYYY-MM-DD using Latin numerals)
- occupation
- gender
- country
- religion
- maritalStatus
- fullNameMarital (if maritalStatus is "أعزب", set this to "none")
- expirationDate (in format YYYY-MM-DD using Latin numerals)
nationalID: Use exactly 14 digits, converting from Arabic numerals to Latin numerals (0-9).
issueDate: Format as YYYY-MM-DD using Latin numerals, setting the date to the last day of the provided month.
occupation: Translate and format consistently (e.g., all lowercase).
gender: Translate and format consistently (e.g., all lowercase).
country: Set to "egypt".
religion: Translate and format consistently (e.g., all lowercase).
maritalStatus: Translate and format consistently (e.g., all lowercase).
fullNameMarital: If maritalStatus is "أعزب", set this to "none". Otherwise, leave it as "none".
expirationDate: Format as YYYY-MM-DD using Latin numerals.
Important notes:
1. Ensure all date fields use Latin (Western) numerals (0-9) instead of Arabic numerals.
2. For the nationalID, use exactly 14 digits from the provided Arabic numeral string, converting to Latin numerals.
3. For issueDate, use the last day of the month since only year and month are provided.
4. Include the country field based on the provided information.
5. Format all string values consistently (e.g., all lowercase or proper case).
Please provide the resulting JSON object. ''', AppLink.uploadEgypt,
Ensure all date fields use Latin (Western) numerals (0-9) instead of Arabic numerals.
For the nationalID, use exactly 14 digits from the provided Arabic numeral string, converting to Latin numerals.
For issueDate, use the last day of the month since only year and month are provided.
Include the country field as "egypt".
Format all string values consistently (e.g., all lowercase or proper case).
Please provide the resulting JSON object.''', AppLink.uploadEgypt,
'id_back'); //egypt
},
child: Column(

View File

@@ -179,24 +179,24 @@ GetBuilder<HomeCaptainController> leftMainMenuCaptainIcons() {
),
),
),
// AnimatedContainer(
// duration: const Duration(microseconds: 200),
// width: controller.widthMapTypeAndTraffic,
// decoration: BoxDecoration(
// color: AppColor.secondaryColor,
// border: Border.all(color: AppColor.blueColor),
// borderRadius: BorderRadius.circular(15)),
// child: IconButton(
// onPressed: () async {
// Get.to(() => EgyptCardAI());
// },
// icon: const Icon(
// FontAwesome5.grin_tears,
// size: 29,
// color: AppColor.blueColor,
// ),
// ),
// ),
AnimatedContainer(
duration: const Duration(microseconds: 200),
width: controller.widthMapTypeAndTraffic,
decoration: BoxDecoration(
color: AppColor.secondaryColor,
border: Border.all(color: AppColor.blueColor),
borderRadius: BorderRadius.circular(15)),
child: IconButton(
onPressed: () async {
Get.to(() => EgyptCardAI());
},
icon: const Icon(
FontAwesome5.grin_tears,
size: 29,
color: AppColor.blueColor,
),
),
),
],
)),
);