Uses of Class
com.alibaba.dashscope.RequestOptions
Packages that use RequestOptions
Package
Description
-
Uses of RequestOptions in com.alibaba.dashscope
Fields in com.alibaba.dashscope declared as RequestOptionsMethods in com.alibaba.dashscope that return RequestOptionsMethods in com.alibaba.dashscope with parameters of type RequestOptions -
Uses of RequestOptions in com.alibaba.dashscope.resources.apps
Methods in com.alibaba.dashscope.resources.apps with parameters of type RequestOptionsModifier and TypeMethodDescriptionAppCompletionsAsyncService.create(AppCompletionCreateParams params, RequestOptions options) AppCompletionsAsyncService.create(String appId, String prompt, RequestOptions options) Sugar for the two required fields (2.xApplication.callparity).AppCompletionsService.create(AppCompletionCreateParams params, RequestOptions options) AppCompletionsService.create(String appId, String prompt, RequestOptions options) Sugar for the two required fields (2.xApplication.callparity).io.reactivex.Flowable<AppCompletion>AppCompletionsAsyncService.createStreaming(AppCompletionCreateParams params, RequestOptions options) AppCompletionsService.createStreaming(AppCompletionCreateParams params, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.audio
Methods in com.alibaba.dashscope.resources.audio with parameters of type RequestOptionsModifier and TypeMethodDescriptionRealtimeService.connect(RealtimeParams params, RequestOptions options) TtsService.connect(TtsConnectParams params, RequestOptions options) TtsService.connect(TtsConnectParams params, WsConnection connection, RequestOptions options) PhrasesService.create(PhraseCreateParams params, RequestOptions options) VocabulariesService.create(VocabularyCreateParams params, RequestOptions options) VoiceDesignService.create(VoiceDesignCreateParams params, RequestOptions options) VoicesService.create(VoiceCreateParams params, RequestOptions options) PhrasesService.delete(String phraseId, RequestOptions options) VocabulariesService.delete(String vocabularyId, String model, RequestOptions options) VoiceDesignService.delete(String voice, String model, RequestOptions options) VoicesService.delete(String voiceId, String model, RequestOptions options) PhrasesService.get(String phraseId, RequestOptions options) VocabulariesService.get(String vocabularyId, String model, RequestOptions options) VoiceDesignService.get(String voice, String model, RequestOptions options) VoicesService.get(String voiceId, String model, RequestOptions options) PhrasesService.list(int pageNo, int pageSize, RequestOptions options) VocabulariesService.list(String prefix, int pageIndex, int pageSize, String model, RequestOptions options) VoiceDesignService.list(int pageIndex, int pageSize, String model, RequestOptions options) VoicesService.list(String prefix, int pageIndex, int pageSize, String model, RequestOptions options) AsrService.recognize(AsrRecognizeParams params, RequestOptions options) AsrService.recognize(AsrRecognizeParams params, WsConnection connection, RequestOptions options) ResponseStream<byte[]>TtsHttpService.stream(TtsSynthesizeParams params, RequestOptions options) ResponseStream<byte[]>TtsService.stream(TtsSynthesizeParams params, RequestOptions options) byte[]TtsHttpService.synthesize(TtsSynthesizeParams params, RequestOptions options) byte[]TtsService.synthesize(TtsSynthesizeParams params, RequestOptions options) AsrAsyncService.transcribe(AsrTranscribeParams params, RequestOptions options) AsrService.transcribe(AsrTranscribeParams params, RequestOptions options) Blocks until a terminal state; equivalent to jobs().create + jobs().wait.PhrasesService.update(String phraseId, PhraseCreateParams params, RequestOptions options) VocabulariesService.update(String vocabularyId, List<Map<String, Object>> vocabulary, String model, RequestOptions options) VoicesService.update(String voiceId, String url, String model, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.chat
Methods in com.alibaba.dashscope.resources.chat with parameters of type RequestOptionsModifier and TypeMethodDescriptionChatCompletionsAsyncService.create(ChatCompletionCreateParams params, RequestOptions options) ChatCompletionsService.create(ChatCompletionCreateParams params, RequestOptions options) io.reactivex.Flowable<ChatCompletionChunk>ChatCompletionsAsyncService.createStreaming(ChatCompletionCreateParams params, RequestOptions options) ChatCompletionsService.createStreaming(ChatCompletionCreateParams params, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.decision
Methods in com.alibaba.dashscope.resources.decision with parameters of type RequestOptionsModifier and TypeMethodDescriptionDecisionAsyncService.create(DecisionCreateParams params, RequestOptions options) DecisionService.create(DecisionCreateParams params, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.deployments
Methods in com.alibaba.dashscope.resources.deployments with parameters of type RequestOptionsModifier and TypeMethodDescriptionDeploymentsAsyncService.create(DeploymentCreateParams params, RequestOptions options) DeploymentsService.create(DeploymentCreateParams params, RequestOptions options) DeploymentsAsyncService.delete(String deployedModel, RequestOptions options) DeploymentsService.delete(String deployedModel, RequestOptions options) DeploymentsAsyncService.get(String deployedModel, RequestOptions options) DeploymentsService.get(String deployedModel, RequestOptions options) DeploymentsAsyncService.list(int pageNo, int pageSize, RequestOptions options) DeploymentsService.list(int pageNo, int pageSize, RequestOptions options) DeploymentsAsyncService.scale(String deployedModel, int capacity, RequestOptions options) DeploymentsService.scale(String deployedModel, int capacity, RequestOptions options) io.reactivex.Flowable<DeploymentEvent>DeploymentsAsyncService.streamEvents(String deployedModel, RequestOptions options) DeploymentsService.streamEvents(String deployedModel, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.embeddings
Methods in com.alibaba.dashscope.resources.embeddings with parameters of type RequestOptionsModifier and TypeMethodDescriptionEmbeddingJobsAsyncService.cancel(String taskId, RequestOptions options) EmbeddingJobsService.cancel(String taskId, RequestOptions options) Cancel a PENDING task (POST /tasks/{task_id}/cancel).EmbeddingAsyncService.create(EmbeddingCreateParams params, RequestOptions options) EmbeddingJobsAsyncService.create(BatchEmbeddingCreateParams params, RequestOptions options) EmbeddingJobsService.create(BatchEmbeddingCreateParams params, RequestOptions options) EmbeddingService.create(EmbeddingCreateParams params, RequestOptions options) EmbeddingJobsAsyncService.fetch(String taskId, RequestOptions options) EmbeddingJobsService.fetch(String taskId, RequestOptions options) EmbeddingJobsAsyncService.list(Map<String, String> query, RequestOptions options) EmbeddingJobsService.list(Map<String, String> query, RequestOptions options) List async tasks (GET /tasks); query keys follow the wire names.EmbeddingJobsAsyncService.wait(String taskId, RequestOptions options) EmbeddingJobsService.wait(String taskId, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.files
Methods in com.alibaba.dashscope.resources.files with parameters of type RequestOptionsModifier and TypeMethodDescriptionFilesAsyncService.delete(String fileId, RequestOptions options) FilesService.delete(String fileId, RequestOptions options) FilesAsyncService.get(String fileId, RequestOptions options) FilesService.get(String fileId, RequestOptions options) FilesAsyncService.list(int pageNo, int pageSize, RequestOptions options) FilesService.list(int pageNo, int pageSize, RequestOptions options) FilesAsyncService.upload(FileUploadParams params, RequestOptions options) FilesService.upload(FileUploadParams params, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.finetunes
Methods in com.alibaba.dashscope.resources.finetunes with parameters of type RequestOptionsModifier and TypeMethodDescriptionFineTunesAsyncService.cancel(String jobId, RequestOptions options) FineTunesService.cancel(String jobId, RequestOptions options) FineTunesAsyncService.create(FineTuneCreateParams params, RequestOptions options) FineTunesService.create(FineTuneCreateParams params, RequestOptions options) FineTunesAsyncService.delete(String jobId, RequestOptions options) FineTunesService.delete(String jobId, RequestOptions options) FineTunesAsyncService.get(String jobId, RequestOptions options) FineTunesService.get(String jobId, RequestOptions options) FineTunesAsyncService.list(int pageNo, int pageSize, RequestOptions options) FineTunesService.list(int pageNo, int pageSize, RequestOptions options) FineTunesAsyncService.logs(String jobId, int offset, int lines, RequestOptions options) FineTunesService.logs(String jobId, int offset, int lines, RequestOptions options) io.reactivex.Flowable<FineTuneEvent>FineTunesAsyncService.streamEvents(String jobId, RequestOptions options) FineTunesService.streamEvents(String jobId, RequestOptions options) FineTunesAsyncService.wait(String jobId, RequestOptions options) FineTunesAsyncService.wait(String jobId, Duration waitTimeout, RequestOptions options) FineTunesService.wait(FineTune job, Duration waitTimeout, RequestOptions options) Same wait, starting from an already-fetched job snapshot (saves one round trip).FineTunesService.wait(String jobId, RequestOptions options) FineTunesService.wait(String jobId, Duration waitTimeout, RequestOptions options) Pollgetwith a 1s → 8s backoff until the job reaches a terminal status. -
Uses of RequestOptions in com.alibaba.dashscope.resources.images
Methods in com.alibaba.dashscope.resources.images with parameters of type RequestOptionsModifier and TypeMethodDescriptionImageJobsAsyncService.cancel(String taskId, RequestOptions options) ImageJobsService.cancel(String taskId, RequestOptions options) ImageJobsAsyncService.create(ImageGenerateParams params, RequestOptions options) ImageJobsService.create(ImageGenerateParams params, RequestOptions options) ImageJobsAsyncService.fetch(String taskId, RequestOptions options) ImageJobsService.fetch(String taskId, RequestOptions options) ImagesAsyncService.generate(ImageGenerateParams params, RequestOptions options) ImagesService.generate(ImageGenerateParams params, RequestOptions options) Blocks until a terminal state; equivalent to jobs().create + jobs().wait (multimodal-protocol models answer in one synchronous request).ImageJobsAsyncService.list(Map<String, String> query, RequestOptions options) ImageJobsService.list(Map<String, String> query, RequestOptions options) ImageJobsAsyncService.wait(String taskId, RequestOptions options) ImageJobsService.wait(String taskId, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.jobs
Methods in com.alibaba.dashscope.resources.jobs with parameters of type RequestOptionsModifier and TypeMethodDescriptionJobsAsyncService.cancel(String taskId, RequestOptions options) JobsService.cancel(String taskId, RequestOptions options) JobsAsyncService.create(String servicePath, com.fasterxml.jackson.databind.JsonNode body, RequestOptions options) JobsAsyncService.create(String servicePath, com.fasterxml.jackson.databind.JsonNode body, Map<String, String> extraHeaders, RequestOptions options) JobsService.create(String servicePath, com.fasterxml.jackson.databind.JsonNode body, RequestOptions options) Submit an async job: POSTservicePathwith the async header.JobsService.create(String servicePath, com.fasterxml.jackson.databind.JsonNode body, Map<String, String> extraHeaders, RequestOptions options) Submit an async job carrying extra request headers (e.g. the OSS resolve opt-in).JobsAsyncService.fetch(String taskId, RequestOptions options) JobsService.fetch(String taskId, RequestOptions options) JobsAsyncService.list(Map<String, String> query, RequestOptions options) JobsService.list(Map<String, String> query, RequestOptions options) List jobs; query keys follow the wire names (page_no/page_size/model_name/status/...).JobsAsyncService.wait(String taskId, RequestOptions options) JobsAsyncService.wait(String taskId, Duration waitTimeout, RequestOptions options) JobsService.wait(String taskId, RequestOptions options) Blocks until a terminal state; equivalent to repeatedlyjobs().fetchwith a 1s→8s backoff (default budget 24h).JobsService.wait(String taskId, Duration waitTimeout, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.models
Methods in com.alibaba.dashscope.resources.models with parameters of type RequestOptionsModifier and TypeMethodDescriptionModelsAsyncService.get(String model, RequestOptions options) ModelsService.get(String model, RequestOptions options) ModelsAsyncService.list(int pageNo, int pageSize, String provider, RequestOptions options) ModelsService.list(int pageNo, int pageSize, String provider, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.multimodal
Methods in com.alibaba.dashscope.resources.multimodal with parameters of type RequestOptionsModifier and TypeMethodDescriptionMultimodalChatAsyncService.create(MultimodalChatCreateParams params, RequestOptions options) MultimodalChatService.create(MultimodalChatCreateParams params, RequestOptions options) MultimodalEmbeddingAsyncService.create(MultimodalEmbeddingCreateParams params, RequestOptions options) MultimodalEmbeddingService.create(MultimodalEmbeddingCreateParams params, RequestOptions options) io.reactivex.Flowable<MultimodalChatChunk>MultimodalChatAsyncService.createStreaming(MultimodalChatCreateParams params, RequestOptions options) MultimodalChatService.createStreaming(MultimodalChatCreateParams params, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.oss
Methods in com.alibaba.dashscope.resources.oss with parameters of type RequestOptionsModifier and TypeMethodDescriptionOssUploader.certificate(String model, RequestOptions options) Fetch the policy certificate; public so a caller uploading several files for one request fetches it once and reuses it (2.x parity — validity is governed server-side).OssUploader.upload(String model, Path file, RequestOptions options) Upload one local file, fetching a fresh policy certificate.Constructors in com.alibaba.dashscope.resources.oss with parameters of type RequestOptionsModifierConstructorDescriptionOssMediaUpload(OssUploader uploader, String model, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.rerank
Methods in com.alibaba.dashscope.resources.rerank with parameters of type RequestOptionsModifier and TypeMethodDescriptionRerankAsyncService.create(RerankCreateParams params, RequestOptions options) RerankService.create(RerankCreateParams params, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.tingwu
Methods in com.alibaba.dashscope.resources.tingwu with parameters of type RequestOptionsModifier and TypeMethodDescriptionTingWuJobsAsyncService.cancel(String taskId, RequestOptions options) TingWuJobsService.cancel(String taskId, RequestOptions options) Cancel a PENDING task (POST /tasks/{task_id}/cancel).TingWuJobsAsyncService.create(TingWuJobParams params, RequestOptions options) TingWuJobsService.create(TingWuJobParams params, RequestOptions options) TingWuJobsAsyncService.fetch(String taskId, RequestOptions options) TingWuJobsService.fetch(String taskId, RequestOptions options) TingWuJobsAsyncService.list(Map<String, String> query, RequestOptions options) TingWuJobsService.list(Map<String, String> query, RequestOptions options) List async tasks (GET /tasks); query keys follow the wire names.TingWuService.realtime(TingWuRealtimeParams params, RequestOptions options) TingWuService.realtime(TingWuRealtimeParams params, WsConnection connection, RequestOptions options) TingWuJobsAsyncService.wait(String taskId, RequestOptions options) TingWuJobsService.wait(String taskId, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.tokenization
Methods in com.alibaba.dashscope.resources.tokenization with parameters of type RequestOptionsModifier and TypeMethodDescriptionTokenizationAsyncService.count(TokenizationCountParams params, RequestOptions options) TokenizationService.count(TokenizationCountParams params, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.resources.videos
Methods in com.alibaba.dashscope.resources.videos with parameters of type RequestOptionsModifier and TypeMethodDescriptionVideoJobsAsyncService.cancel(String taskId, RequestOptions options) VideoJobsService.cancel(String taskId, RequestOptions options) VideoJobsAsyncService.create(VideoGenerateParams params, RequestOptions options) VideoJobsService.create(VideoGenerateParams params, RequestOptions options) VideoJobsAsyncService.fetch(String taskId, RequestOptions options) VideoJobsService.fetch(String taskId, RequestOptions options) VideosAsyncService.generate(VideoGenerateParams params, RequestOptions options) VideosService.generate(VideoGenerateParams params, RequestOptions options) Blocks until a terminal state; equivalent to jobs().create + jobs().wait.VideoJobsAsyncService.list(Map<String, String> query, RequestOptions options) VideoJobsService.list(Map<String, String> query, RequestOptions options) VideoJobsAsyncService.wait(String taskId, RequestOptions options) VideoJobsService.wait(String taskId, RequestOptions options) -
Uses of RequestOptions in com.alibaba.dashscope.transport
Methods in com.alibaba.dashscope.transport with parameters of type RequestOptionsModifier and TypeMethodDescriptionEncryptionKeys.createConfig(RequestOptions options) Fetch the latest public key and build a freshEncryptionConfig.HttpTransport.execute(String path, com.fasterxml.jackson.databind.JsonNode body, String module, RequestOptions options) POSTpath(relative to the resolved base URL) with a JSON body.HttpTransport.execute(String path, com.fasterxml.jackson.databind.JsonNode body, Map<String, String> extraHeaders, String module, RequestOptions options) POST with extra request headers (e.g.HttpTransport.executeDelete(String path, String module, RequestOptions options) DELETEpath(files/fine-tunes/deployments CRUD).HttpTransport.executeForm(String path, Map<String, String> fields, String fileField, String fileName, byte[] content, String contentType, String module, RequestOptions options) Multipart POST (files upload): form fields first, the file part last; rides the same auth/retry/UA pipeline as JSON posts.HttpTransport.executeGet(String path, Map<String, String> query, String module, RequestOptions options) GETpathwith query parameters (jobs fetch/cancel/list).HttpTransport.executeJobEventStream(String path, String module, RequestOptions options) GET a job-event SSE endpoint (fine-tunes/deployments): theevent:error/status:framing, not the plaindata:-only shape ofHttpTransport.executeStream(java.lang.String, com.fasterxml.jackson.databind.JsonNode, java.lang.String, com.alibaba.dashscope.RequestOptions).HttpTransport.executePut(String path, com.fasterxml.jackson.databind.JsonNode body, String module, RequestOptions options) PUTpathwith a JSON body (deployments scale).HttpTransport.executeStream(String path, com.fasterxml.jackson.databind.JsonNode body, String module, RequestOptions options) POST with SSE: returns the open stream.HttpTransport.executeStream(String path, com.fasterxml.jackson.databind.JsonNode body, String module, String userAgentSuffix, RequestOptions options) SSE variant carrying a User-Agent suffix (multimodal incremental_to_full parity). -
Uses of RequestOptions in com.alibaba.dashscope.transport.ws
Constructors in com.alibaba.dashscope.transport.ws with parameters of type RequestOptionsModifierConstructorDescriptionWsConnection(HttpTransport transport, String url, String module, RequestOptions options) WsConnection(HttpTransport transport, String url, String module, RequestOptions options, int maxQueueCapacity, Duration connectTimeout) WsSession(HttpTransport transport, String url, String taskId, String module, RequestOptions options) WsSession(HttpTransport transport, String url, String taskId, String module, RequestOptions options, int maxQueueCapacity, Duration connectTimeout)