Class ChatCompletionsService
java.lang.Object
com.alibaba.dashscope.resources.chat.ChatCompletionsService
chat.completions resource: create / createStreaming.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ChatCompletionCreateParams params) create(ChatCompletionCreateParams params, RequestOptions options) Streaming create.createStreaming(ChatCompletionCreateParams params, RequestOptions options)
-
Constructor Details
-
ChatCompletionsService
-
-
Method Details
-
create
-
create
-
createStreaming
Streaming create. Always close the stream (try-with-resources); the iterator is single-use. In-stream error frames throw (or surface as a final error chunk underraiseOnError(false)). -
createStreaming
public ResponseStream<ChatCompletionChunk> createStreaming(ChatCompletionCreateParams params, RequestOptions options)
-