Liking cljdoc? Tell your friends :D

im.ttalk.agent.provider.mistral

Mistral AI Provider —— OpenAI 兼容实现(统一由 base/defprovider 生成)。

需要 MISTRAL_API_KEY 或显式 :api-key。

(require '[im.ttalk.agent.provider.mistral :as mistral]) (def provider (mistral/create-provider {:api-key "..."}))

Mistral AI Provider —— OpenAI 兼容实现(统一由 base/defprovider 生成)。

需要 MISTRAL_API_KEY 或显式 :api-key。

(require '[im.ttalk.agent.provider.mistral :as mistral])
(def provider (mistral/create-provider {:api-key "..."}))
raw docstring

call-mistralclj

(call-mistral config__10075__auto__
              messages__10076__auto__
              tools__10077__auto__)

调用 mistral API(同步)

调用 mistral API(同步)
sourceraw docstring

call-mistral-asyncclj

(call-mistral-async config__10075__auto__
                    messages__10076__auto__
                    tools__10077__auto__)

异步调用 mistral API(返回 deferred<响应体>)

异步调用 mistral API(返回 deferred<响应体>)
sourceraw docstring

call-mistral-streamclj

(call-mistral-stream config__10075__auto__
                     messages__10076__auto__
                     tools__10077__auto__
                     on-token__10078__auto__)

流式调用 mistral API

流式调用 mistral API
sourceraw docstring

call-mistral-stream-asyncclj

(call-mistral-stream-async config__10075__auto__
                           messages__10076__auto__
                           tools__10077__auto__
                           on-token__10078__auto__)

异步流式调用 mistral API(返回 deferred<最终响应>)

异步流式调用 mistral API(返回 deferred<最终响应>)
sourceraw docstring

create-providerclj

(create-provider)
(create-provider opts10269)

创建 mistral Provider

创建 mistral Provider
sourceraw docstring

default-configclj

默认 mistral 配置

默认 mistral 配置
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close