Class FineTunesService
java.lang.Object
com.alibaba.dashscope.resources.finetunes.FineTunesService
fineTunes resource (design §3, Python v2 fine_tunes.py parity): create/get/list/cancel/
delete over /fine-tunes, plus training logs, the streamEvents SSE feed,
and wait — a poller over get (this plane has no /tasks entry; UNKNOWN is
deliberately not terminal here, unlike Job).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancel(String jobId, RequestOptions options) create(FineTuneCreateParams params) create(FineTuneCreateParams params, RequestOptions options) delete(String jobId, RequestOptions options) get(String jobId, RequestOptions options) list(int pageNo, int pageSize) list(int pageNo, int pageSize, RequestOptions options) logs(String jobId, int offset, int lines, RequestOptions options) streamEvents(String jobId) The job-event SSE feed.streamEvents(String jobId, RequestOptions options) wait(FineTune job, Duration waitTimeout, RequestOptions options) Same wait, starting from an already-fetched job snapshot (saves one round trip).wait(String jobId, RequestOptions options) wait(String jobId, Duration waitTimeout, RequestOptions options) Pollgetwith a 1s → 8s backoff until the job reaches a terminal status.
-
Field Details
-
DEFAULT_WAIT_TIMEOUT
-
-
Constructor Details
-
FineTunesService
-
-
Method Details
-
create
-
create
-
get
-
get
-
list
-
list
-
cancel
-
cancel
-
delete
-
delete
-
logs
-
logs
-
streamEvents
The job-event SSE feed. Close the returned stream (try-with-resources). -
streamEvents
-
wait
-
wait
Pollgetwith a 1s → 8s backoff until the job reaches a terminal status. -
wait
Same wait, starting from an already-fetched job snapshot (saves one round trip).
-