Upload iteration_1/dataset_dpo.jsonl with huggingface_hub
Browse files
iteration_1/dataset_dpo.jsonl
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"instruction": "# Utilisation de l'endpoint API CheckAuthentication\n\n## Description\nCette méthode permet de interagir avec l'API Outscale.\n\n## Endpoint API\nL'endpoint API à utiliser est `/CheckAuthentication`.\n\n## Méthode HTTP\nLa méthode HTTP à utiliser est `post`.\n\n## En-têtes et authentification\nAssurez-vous d'inclure les en-têtes suivants dans votre requête :\n- `Content-Type: application/json` : Indique le type de contenu de la requête\n- `Authorization` : Utilisez l'authentification AWS Signature Version 4 (AWS-SigV4)\n\n## Paramètres de requête\n### Paramètres requis :\nAucun paramètre requis\n\n### Paramètres optionnels :\n- `Login` : L'identifiant Login (ex: \"[email protected]\") (optionnel)\n- `Password` : L'identifiant Password (ex: \"$OSC_PASSWORD\") (optionnel)\n\n### Exemple de structure JSON :\n{\n \"Login\": \"[email protected]\",\n \"Password\": \"$OSC_PASSWORD\"\n}\n\n## Exemple de requête cURL\n```bash\ncurl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CheckAuthentication \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"Login\": \"[email protected]\", \"Password\": \"$OSC_PASSWORD\"}'\n```\n\n## Notes importantes\n- Assurez-vous d'avoir les autorisations nécessaires\n- Remplacez $OSC_REGION, $OSC_ACCESS_KEY et $OSC_SECRET_KEY par vos valeurs\n- Vérifiez que tous les paramètres requis sont fournis\n- Les paramètres optionnels peuvent être omis selon vos besoins", "prompt": "Ordres utilisateur possibles :\n1. Comment utiliser l'endpoint CheckAuthentication ?\n2. Quelle est la procédure pour Check Authentication ?\n3. Comment exécuter l'opération Check Authentication ?\n4. Quelles sont les étapes pour Check Authentication ?", "chosen": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CheckAuthentication \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"Login\": \"[email protected]\", \"Password\": \"$OSC_PASSWORD\"}'", "rejected": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CheckAuthentication \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"Login\": \"[email protected]\", \"Password\": \"$OSC_PASSWORD\"}'"}
|
2 |
+
{"instruction": "# Utilisation de l'endpoint API CreateVms\n\n## Description\nCette méthode permet de creating a vm (minimal syntax).\n\n## Endpoint API\nL'endpoint API à utiliser est `/CreateVms`.\n\n## Méthode HTTP\nLa méthode HTTP à utiliser est `post`.\n\n## En-têtes et authentification\nAssurez-vous d'inclure les en-têtes suivants dans votre requête :\n- `Content-Type: application/json` : Indique le type de contenu de la requête\n- `Authorization` : Utilisez l'authentification AWS Signature Version 4 (AWS-SigV4)\n\n## Paramètres de requête\n### Paramètres requis :\nAucun paramètre requis\n\n### Paramètres optionnels :\n- `ImageId` : L'identifiant ImageId (ex: \"ami-12345678\") (optionnel)\n\n### Exemple de structure JSON :\n{\n \"ImageId\": \"ami-12345678\"\n}\n\n## Exemple de requête cURL\n```bash\ncurl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\"}'\n```\n\n## Notes importantes\n- Assurez-vous d'avoir les autorisations nécessaires\n- Remplacez $OSC_REGION, $OSC_ACCESS_KEY et $OSC_SECRET_KEY par vos valeurs\n- Vérifiez que tous les paramètres requis sont fournis\n- Les paramètres optionnels peuvent être omis selon vos besoins", "prompt": "Ordres utilisateur possibles :\n1. Comment creating a vm (minimal syntax) ?\n2. Quelles sont les étapes pour créer unVms avec ImageId spécifique ?\n3. Comment configurer un nouveauVms avec ImageId spécifique ?\n4. Comment creating a vm in a net ?", "chosen": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\"}'", "rejected": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: text/plain' \\\n --data '{ ,\n\"ImageId\": \"ami-12345678\"}'"}
|
3 |
+
{"instruction": "# Utilisation de l'endpoint API CreateVms\n\n## Description\nCette méthode permet de creating a vm in a net.\n\n## Endpoint API\nL'endpoint API à utiliser est `/CreateVms`.\n\n## Méthode HTTP\nLa méthode HTTP à utiliser est `post`.\n\n## En-têtes et authentification\nAssurez-vous d'inclure les en-têtes suivants dans votre requête :\n- `Content-Type: application/json` : Indique le type de contenu de la requête\n- `Authorization` : Utilisez l'authentification AWS Signature Version 4 (AWS-SigV4)\n\n## Paramètres de requête\n### Paramètres requis :\nAucun paramètre requis\n\n### Paramètres optionnels :\n- `ImageId` : L'identifiant ImageId (ex: \"ami-12345678\") (optionnel)\n- `VmType` : L'identifiant VmType (ex: \"tinav5.c1r1p2\") (optionnel)\n- `KeypairName` : L'identifiant KeypairName (ex: \"keypair-example\") (optionnel)\n- `SecurityGroupIds` : Liste de SecurityGroupIds (ex: [\"sg-12345678\"]) (optionnel)\n- `SubnetId` : L'identifiant SubnetId (ex: \"subnet-12345678\") (optionnel)\n- `UserData` : L'identifiant UserData (ex: \"...\") (optionnel)\n\n### Exemple de structure JSON :\n{\n \"ImageId\": \"ami-12345678\",\n \"VmType\": \"tinav5.c1r1p2\",\n \"KeypairName\": \"keypair-example\",\n \"SecurityGroupIds\": [\n \"sg-12345678\"\n ],\n \"SubnetId\": \"subnet-12345678\",\n \"UserData\": \"...\"\n}\n\n## Exemple de requête cURL\n```bash\ncurl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"SecurityGroupIds\": [\"sg-12345678\"], \"SubnetId\": \"subnet-12345678\", \"UserData\": \"...\"}'\n```\n\n## Notes importantes\n- Assurez-vous d'avoir les autorisations nécessaires\n- Remplacez $OSC_REGION, $OSC_ACCESS_KEY et $OSC_SECRET_KEY par vos valeurs\n- Vérifiez que tous les paramètres requis sont fournis\n- Les paramètres optionnels peuvent être omis selon vos besoins", "prompt": "Ordres utilisateur possibles :\n1. Comment creating a vm (minimal syntax) ?\n2. Quelles sont les étapes pour créer unVms avec ImageId spécifique ?\n3. Comment configurer un nouveauVms avec ImageId spécifique ?\n4. Comment creating a vm in a net ?", "chosen": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"SecurityGroupIds\": [\"sg-12345678\"], \"SubnetId\": \"subnet-12345678\", \"UserData\": \"...\"}'", "rejected": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: text/plain' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"SecurityGroupIds\": [\"sg-12345678\"], \"SubnetId\": \"subnet-12345678\", \"UserData\": \"...\"}'"}
|
4 |
+
{"instruction": "# Utilisation de l'endpoint API CreateVms\n\n## Description\nCette méthode permet de creating a vm with block device mappings.\n\n## Endpoint API\nL'endpoint API à utiliser est `/CreateVms`.\n\n## Méthode HTTP\nLa méthode HTTP à utiliser est `post`.\n\n## En-têtes et authentification\nAssurez-vous d'inclure les en-têtes suivants dans votre requête :\n- `Content-Type: application/json` : Indique le type de contenu de la requête\n- `Authorization` : Utilisez l'authentification AWS Signature Version 4 (AWS-SigV4)\n\n## Paramètres de requête\n### Paramètres requis :\nAucun paramètre requis\n\n### Paramètres optionnels :\n- `ImageId` : L'identifiant ImageId (ex: \"ami-12345678\") (optionnel)\n- `VmType` : L'identifiant VmType (ex: \"tinav5.c1r1p2\") (optionnel)\n- `KeypairName` : L'identifiant KeypairName (ex: \"keypair-example\") (optionnel)\n- `SecurityGroupIds` : Liste de SecurityGroupIds (ex: [\"sg-12345678\"]) (optionnel)\n- `SubnetId` : L'identifiant SubnetId (ex: \"subnet-12345678\") (optionnel)\n- `UserData` : L'identifiant UserData (ex: \"...\") (optionnel)\n- `BlockDeviceMappings` : Liste de BlockDeviceMappings (ex: [{\"DeviceName\": \"/dev/sda1\", \"Bsu\": {\"VolumeSize\": 15, \"VolumeType\": \"gp2\"}}, {\"DeviceName\": \"/dev/sdb\", \"Bsu\": {\"SnapshotId\": \"snap-12345678\", \"VolumeSize\": 22, \"VolumeType\": \"io1\", \"Iops\": 150}}]) (optionnel)\n\n### Exemple de structure JSON :\n{\n \"ImageId\": \"ami-12345678\",\n \"VmType\": \"tinav5.c1r1p2\",\n \"KeypairName\": \"keypair-example\",\n \"SecurityGroupIds\": [\n \"sg-12345678\"\n ],\n \"SubnetId\": \"subnet-12345678\",\n \"UserData\": \"...\",\n \"BlockDeviceMappings\": [\n {\n \"DeviceName\": \"/dev/sda1\",\n \"Bsu\": {\n \"VolumeSize\": 15,\n \"VolumeType\": \"gp2\"\n }\n },\n {\n \"DeviceName\": \"/dev/sdb\",\n \"Bsu\": {\n \"SnapshotId\": \"snap-12345678\",\n \"VolumeSize\": 22,\n \"VolumeType\": \"io1\",\n \"Iops\": 150\n }\n }\n ]\n}\n\n## Exemple de requête cURL\n```bash\ncurl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"SecurityGroupIds\": [\"sg-12345678\"], \"SubnetId\": \"subnet-12345678\", \"UserData\": \"...\", \"BlockDeviceMappings\": [{\"DeviceName\": \"/dev/sda1\", \"Bsu\": {\"VolumeSize\": 15, \"VolumeType\": \"gp2\"}}, {\"DeviceName\": \"/dev/sdb\", \"Bsu\": {\"SnapshotId\": \"snap-12345678\", \"VolumeSize\": 22, \"VolumeType\": \"io1\", \"Iops\": 150}}]}'\n```\n\n## Notes importantes\n- Assurez-vous d'avoir les autorisations nécessaires\n- Remplacez $OSC_REGION, $OSC_ACCESS_KEY et $OSC_SECRET_KEY par vos valeurs\n- Vérifiez que tous les paramètres requis sont fournis\n- Les paramètres optionnels peuvent être omis selon vos besoins", "prompt": "Ordres utilisateur possibles :\n1. Comment creating a vm (minimal syntax) ?\n2. Quelles sont les étapes pour créer unVms avec ImageId spécifique ?\n3. Comment configurer un nouveauVms avec ImageId spécifique ?\n4. Comment creating a vm in a net ?", "chosen": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"SecurityGroupIds\": [\"sg-12345678\"], \"SubnetId\": \"subnet-12345678\", \"UserData\": \"...\", \"BlockDeviceMappings\": [{\"DeviceName\": \"/dev/sda1\", \"Bsu\": {\"VolumeSize\": 15, \"VolumeType\": \"gp2\"}}, {\"DeviceName\": \"/dev/sdb\", \"Bsu\": {\"SnapshotId\": \"snap-12345678\", \"VolumeSize\": 22, \"VolumeType\": \"io1\", \"Iops\": 150}}]}'", "rejected": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: text/plain' \\\n --data '{\"ImageId\": \"wrong-image-id\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"SecurityGroupIds\": [\"sg-12345678\"], \"SubnetId\": \"subnet-12345678\", \"UserData\": \"...\", \"BlockDeviceMappings\": [{\"DeviceName\": \"/dev/sda1\", \"Bsu\": {\"VolumeSize\": 15, \"VolumeType\": \"gp2\"}}, {\"DeviceName\": \"/dev/sdb\", \"Bsu\": {\"SnapshotId\": \"snap-12345678\", \"VolumeSize\": 22, \"VolumeType\": \"io1\", \"Iops\": 150}}]}'"}
|
5 |
+
{"instruction": "# Utilisation de l'endpoint API CreateVms\n\n## Description\nCette méthode permet de creating a vm with a nic.\n\n## Endpoint API\nL'endpoint API à utiliser est `/CreateVms`.\n\n## Méthode HTTP\nLa méthode HTTP à utiliser est `post`.\n\n## En-têtes et authentification\nAssurez-vous d'inclure les en-têtes suivants dans votre requête :\n- `Content-Type: application/json` : Indique le type de contenu de la requête\n- `Authorization` : Utilisez l'authentification AWS Signature Version 4 (AWS-SigV4)\n\n## Paramètres de requête\n### Paramètres requis :\nAucun paramètre requis\n\n### Paramètres optionnels :\n- `ImageId` : L'identifiant ImageId (ex: \"ami-12345678\") (optionnel)\n- `VmType` : L'identifiant VmType (ex: \"tinav5.c1r1p2\") (optionnel)\n- `KeypairName` : L'identifiant KeypairName (ex: \"keypair-example\") (optionnel)\n- `UserData` : L'identifiant UserData (ex: \"...\") (optionnel)\n- `Nics` : Liste de Nics (ex: [{\"DeviceNumber\": 0, \"NicId\": \"eni-12345678\"}]) (optionnel)\n\n### Exemple de structure JSON :\n{\n \"ImageId\": \"ami-12345678\",\n \"VmType\": \"tinav5.c1r1p2\",\n \"KeypairName\": \"keypair-example\",\n \"UserData\": \"...\",\n \"Nics\": [\n {\n \"DeviceNumber\": 0,\n \"NicId\": \"eni-12345678\"\n }\n ]\n}\n\n## Exemple de requête cURL\n```bash\ncurl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"UserData\": \"...\", \"Nics\": [{\"DeviceNumber\": 0, \"NicId\": \"eni-12345678\"}]}'\n```\n\n## Notes importantes\n- Assurez-vous d'avoir les autorisations nécessaires\n- Remplacez $OSC_REGION, $OSC_ACCESS_KEY et $OSC_SECRET_KEY par vos valeurs\n- Vérifiez que tous les paramètres requis sont fournis\n- Les paramètres optionnels peuvent être omis selon vos besoins", "prompt": "Ordres utilisateur possibles :\n1. Comment creating a vm (minimal syntax) ?\n2. Quelles sont les étapes pour créer unVms avec ImageId spécifique ?\n3. Comment configurer un nouveauVms avec ImageId spécifique ?\n4. Comment creating a vm in a net ?", "chosen": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: application/json' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"UserData\": \"...\", \"Nics\": [{\"DeviceNumber\": 0, \"NicId\": \"eni-12345678\"}]}'", "rejected": "curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \\\n --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \\\n --aws-sigv4 'osc' \\\n --header 'Content-Type: text/plain' \\\n --data '{\"ImageId\": \"ami-12345678\", \"VmType\": \"tinav5.c1r1p2\", \"KeypairName\": \"keypair-example\", \"UserData\": \"...\", \"Nics\": [{\"DeviceNumber\": 0, \"NicId\": \"eni-12345678\"},]}'"}
|