Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
clef cloud launch
Jonathan Berg3d418367d991
diff --git a/docs/api/introduction.mdx b/docs/api/introduction.mdxindex 6c0fbeab9..c34d05ad4 100644--- a/docs/api/introduction.mdx+++ b/docs/api/introduction.mdx@@ -22,7 +22,7 @@ The Anthropic client appends `/v1/messages` to its base URL.Cloud requests need an API key. Local requests do not. To use cloud models through your local server, [sign in to Ollama](/api/authentication#signing-in).-Creating or deleting models requires a local Ollama server. [System One](/capabilities/decision) also requires a local server and is not yet available in Ollama's cloud. For supported API features, see [OpenAI compatibility](/api/openai-compatibility) and [Anthropic compatibility](/api/anthropic-compatibility).+Creating or deleting models requires a local Ollama server. [System One](/capabilities/decision) runs locally and in Ollama's cloud with `clef:cloud`. For supported API features, see [OpenAI compatibility](/api/openai-compatibility) and [Anthropic compatibility](/api/anthropic-compatibility).## Ollama API examplediff --git a/docs/capabilities/decision.mdx b/docs/capabilities/decision.mdxindex 46ea98f47..1681e325c 100644--- a/docs/capabilities/decision.mdx+++ b/docs/capabilities/decision.mdx@@ -4,7 +4,7 @@ description: Classify text, estimate yes/no probabilities, and score ordered cri---<Note>-Currently available locally in Ollama.+Available locally, and in [Ollama's cloud](/cloud) with `clef:cloud`.</Note>Use System One to classify text, answer yes/no questions, or score text against a rubric.@@ -161,6 +161,45 @@ Example response:}```+## Use a cloud model++[Clef](https://ollama.com/library/clef) also runs in [Ollama's cloud](/cloud) on a [paid plan](https://ollama.com/pricing). Add `:cloud` to the model name to send the request through a local Ollama server, v0.40.5 or later, signed in to ollama.com:++```shell cloud.sh+curl http://localhost:11434/v1/systemone \+ -H 'Content-Type: application/json' \+ -d '{+ "model": "clef:cloud",+ "state": "Our checkout has returned 500 errors since 9am.",+ "questions": {+ "urgent": {+ "type": "noul",+ "instructions": "Does this ticket need attention within the hour?"+ }+ }+ }'+```++Or call ollama.com directly with an [API key](https://ollama.com/settings/keys):++```shell cloud-direct.sh+curl https://ollama.com/v1/systemone \+ -H "Authorization: Bearer $OLLAMA_API_KEY" \+ -H 'Content-Type: application/json' \+ -d '{+ "model": "clef",+ "state": "Our checkout has returned 500 errors since 9am.",+ "questions": {+ "urgent": {+ "type": "noul",+ "instructions": "Does this ticket need attention within the hour?"+ }+ }+ }'+```++Cloud requests accept up to 64 questions, named with letters, digits, `_`, `.`, or `-`, and up to 4 images of at most 4 MiB and 16 megapixels each, 8 MiB in total. Input is limited to the model's 65,536-token context window; longer input is rejected. Usage is billed per input token at the [listed price](https://ollama.com/pricing).+## Question types| Type | Criteria | Result |diff --git a/docs/openapi.yaml b/docs/openapi.yamlindex 2a9ffe398..b9125c36e 100644--- a/docs/openapi.yaml+++ b/docs/openapi.yaml@@ -899,7 +899,7 @@ components:model:type: stringpattern: '\S'- description: Local model trained for System One, such as nimble.+ description: Model trained for System One, such as nimble, or clef:cloud for Ollama's cloud.state:$ref: "#/components/schemas/SystemOneContent"images:@@ -1155,7 +1155,7 @@ paths:post:summary: Answer typed questionsdescription: |- Answer choice, yes/no, and scoring questions with a local System One model. Requires Ollama v0.35.0 or later. See the [decision guide](/capabilities/decision) for examples.+ Answer choice, yes/no, and scoring questions with a System One model, locally or in Ollama's cloud. Requires Ollama v0.35.0 or later, or v0.40.5 or later for cloud models. See the [decision guide](/capabilities/decision) for examples.operationId: systemonex-mint:href: /api/systemone@@ -1164,11 +1164,12 @@ paths:sidebarTitle: /v1/systemonecontent: |<Note>- Currently available locally in Ollama.+ Available locally, and in [Ollama's cloud](/cloud) with `clef:cloud`.</Note>- Returns one JSON response; streaming, video, tools, and generation controls are not supported.- - Requests without images must fit within 64 KiB; requests with images must fit within 32 MiB, including base64 and JSON. The complete input must fit the loaded context window. Nimble and Tev also require two token positions for scoring. Input is never truncated.+ - Local requests without images must fit within 64 KiB; requests with images must fit within 32 MiB, including base64 and JSON. The complete input must fit the loaded context window. Nimble and Tev also require two token positions for scoring. Input is never truncated.+ - Cloud models require a [paid plan](https://ollama.com/pricing). Cloud requests accept up to 64 questions, named with letters, digits, `_`, `.`, or `-`, and up to 4 images of at most 4 MiB and 16 megapixels each, 8 MiB in total. Requests must fit within 13 MiB, and input must fit the model's 65,536-token context window.x-codeSamples:- lang: bashlabel: Choose a label@@ -1229,19 +1230,31 @@ paths:input_tokens: 174output_tokens: 1"400":- description: Invalid request, unsupported model or runner, or a rendered prompt that exceeds the loaded context. Cloud models are rejected.+ description: Invalid request, unsupported model or runner, or a rendered prompt that exceeds the loaded context or a cloud model's token limit.+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ErrorResponse"+ "401":+ description: A cloud model was requested without signing in. The response includes a `signin_url`.+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ErrorResponse"+ "402":+ description: The cloud model requires a paid plan.content:application/json:schema:$ref: "#/components/schemas/ErrorResponse""404":- description: Local model not found. Download the model before making a request.+ description: Model not found. Download a local model before making a request.content:application/json:schema:$ref: "#/components/schemas/ErrorResponse""413":- description: Request body exceeds 64 KiB without images or 32 MiB with images.+ description: Local request body exceeds 64 KiB without images or 32 MiB with images, or a cloud request exceeds 13 MiB or the model's context window.content:application/json:schema: