from openapi import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.files.delete(file_id="file-abc123")
# Handle response
print(res){
"id": "file-abc123",
"object": "file",
"deleted": true
}Excluir um arquivo do armazenamento. Isso também o removerá de quaisquer armazenamentos vetoriais.
from openapi import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.files.delete(file_id="file-abc123")
# Handle response
print(res){
"id": "file-abc123",
"object": "file",
"deleted": true
}Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Esta página foi útil?