@huggingface/hub
Version:
Utilities to interact with the Hugging Face hub
24 lines • 675 B
TypeScript
import type { CredentialsParams } from "../../types/public";
/**
* Stream job logs using Server-Sent Events (SSE).
* Returns an async iterable of log chunks.
*/
export declare function streamJobLogs(params: {
/**
* The namespace (username or organization name)
*/
namespace: string;
/**
* The job ID
*/
jobId: string;
hubUrl?: string;
/**
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
*/
fetch?: typeof fetch;
} & CredentialsParams): AsyncGenerator<{
message: string;
timestamp: Date;
}, void, unknown>;
//# sourceMappingURL=stream-job-logs.d.ts.map