@@ -1381,6 +1381,85 @@ paths:
13811381 application/json :
13821382 schema :
13831383 $ref : ' #/components/schemas/FinetuneResponse'
1384+ delete :
1385+ tags : ['Fine-tuning']
1386+ summary : Delete a fine-tune job
1387+ description : Delete a fine-tuning job.
1388+ x-codeSamples :
1389+ - lang : Python
1390+ label : Together AI SDK (Python)
1391+ source : |
1392+ from together import Together
1393+ import os
1394+
1395+ client = Together(
1396+ api_key=os.environ.get("TOGETHER_API_KEY"),
1397+ )
1398+
1399+ response = client.fine_tuning.delete(id="ft-id")
1400+
1401+ print(response)
1402+ - lang : TypeScript
1403+ label : Together AI SDK (TypeScript)
1404+ source : |
1405+ import Together from "together-ai";
1406+
1407+ const client = new Together({
1408+ apiKey: process.env.TOGETHER_API_KEY,
1409+ });
1410+
1411+ const response = await client.fineTune.delete("ft-id");
1412+
1413+ console.log(response);
1414+ - lang : JavaScript
1415+ label : Together AI SDK (JavaScript)
1416+ source : |
1417+ import Together from "together-ai";
1418+
1419+ const client = new Together({
1420+ apiKey: process.env.TOGETHER_API_KEY,
1421+ });
1422+
1423+ const response = await client.fineTune.delete("ft-id");
1424+
1425+ console.log(response);
1426+ - lang : Shell
1427+ label : cURL
1428+ source : |
1429+ curl -X "DELETE" "https://api.together.xyz/v1/fine-tunes/ft-id?force=false" \
1430+ -H "Authorization: Bearer $TOGETHER_API_KEY" \
1431+ -H "Content-Type: application/json"
1432+ parameters :
1433+ - name : id
1434+ in : path
1435+ required : true
1436+ schema :
1437+ type : string
1438+ - name : force
1439+ in : query
1440+ required : true
1441+ schema :
1442+ type : boolean
1443+ default : null
1444+ responses :
1445+ ' 200 ' :
1446+ description : Fine-tune job deleted successfully
1447+ content :
1448+ application/json :
1449+ schema :
1450+ $ref : ' #/components/schemas/FinetuneDeleteResponse'
1451+ ' 404 ' :
1452+ description : Fine-tune job not found
1453+ content :
1454+ application/json :
1455+ schema :
1456+ $ref : ' #/components/schemas/ErrorData'
1457+ ' 500 ' :
1458+ description : Internal server error
1459+ content :
1460+ application/json :
1461+ schema :
1462+ $ref : ' #/components/schemas/ErrorData'
13841463 /fine-tunes/{id}/events :
13851464 get :
13861465 tags : ['Fine-tuning']
@@ -5563,7 +5642,12 @@ components:
55635642 hf_model_revision :
55645643 type : string
55655644 description : The revision of the Hugging Face Hub model to continue training from
5566-
5645+ FinetuneDeleteResponse :
5646+ type : object
5647+ properties :
5648+ message :
5649+ type : string
5650+ description : Message indicating the result of the deletion
55675651 FinetuneJobStatus :
55685652 type : string
55695653 enum :
0 commit comments