Package-level declarations

Types

Link copied to clipboard
class DashscopeClientSettings(baseUrl: String = "https://dashscope-intl.aliyuncs.com/", chatCompletionsPath: String = "compatible-mode/v1/chat/completions", timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig()) : OpenAIBaseSettings

Configuration settings for connecting to the DashScope API using OpenAI-compatible endpoints.

Link copied to clipboard
class DashscopeLLMClient(apiKey: String, settings: DashscopeClientSettings = DashscopeClientSettings(), baseClient: HttpClient = HttpClient(), clock: Clock = Clock.System) : AbstractOpenAILLMClient<DashscopeChatCompletionResponse, DashscopeChatCompletionStreamResponse>

Implementation of AbstractOpenAILLMClient for DashScope API using OpenAI-compatible endpoints.

Link copied to clipboard

Dashscope LLM models enumeration.

Link copied to clipboard
class DashscopeParams(temperature: Double? = null, maxTokens: Int? = null, numberOfChoices: Int? = null, speculation: String? = null, schema: LLMParams.Schema? = null, toolChoice: LLMParams.ToolChoice? = null, user: String? = null, additionalProperties: Map<String, JsonElement>? = null, val enableSearch: Boolean? = null, val parallelToolCalls: Boolean? = null, val enableThinking: Boolean? = null, val frequencyPenalty: Double? = null, val presencePenalty: Double? = null, val logprobs: Boolean? = null, val stop: List<String>? = null, val topLogprobs: Int? = null, val topP: Double? = null) : LLMParams

DashScope chat-completions parameters layered on top of LLMParams.