diff --git a/cohere-openapi.yaml b/cohere-openapi.yaml index f7b7ba8c..b13a99bf 100644 --- a/cohere-openapi.yaml +++ b/cohere-openapi.yaml @@ -11508,7 +11508,7 @@ paths: &MyReader{Reader: strings.NewReader(`{"text": "The quick brown fox jumps over the lazy dog"}`), name: "test.jsonl"}, &MyReader{Reader: strings.NewReader(""), name: "a.jsonl"}, &cohere.DatasetsCreateRequest{ - Name: "embed-dataset", + Name: "prompt-completion-dataset", Type: cohere.DatasetTypeEmbedResult, }, ) @@ -11528,9 +11528,9 @@ paths: # upload a dataset my_dataset = co.datasets.create( - name="chat-dataset", - data=open("./chat.jsonl", "rb"), - type="chat-finetune-input", + name="prompt-completion-dataset", + data=open("./prompt-completion.jsonl", "rb"), + type="prompt-completion-finetune-input", ) # wait for validation to complete @@ -11550,9 +11550,9 @@ paths: # upload a dataset response = await co.datasets.create( - name="chat-dataset", - data=open("./chat.jsonl", "rb"), - type="chat-finetune-input", + name="prompt-completion-dataset", + data=open("./prompt-completion.jsonl", "rb"), + type="prompt-completion-finetune-input", ) # wait for validation to complete @@ -11583,7 +11583,7 @@ paths: public static void main(String[] args) { Cohere cohere = Cohere.builder().token("<>").clientName("snippet").build(); - DatasetsCreateResponse response = cohere.datasets().create(null, Optional.empty(), DatasetsCreateRequest.builder().name("chat-dataset").type(DatasetType.CHAT_FINETUNE_INPUT).build()); + DatasetsCreateResponse response = cohere.datasets().create(null, Optional.empty(), DatasetsCreateRequest.builder().name("prompt-completion-dataset").type(DatasetType.PROMPT_COMPLETION_FINETUNE_INPUT).build()); System.out.println(response); } @@ -14396,14 +14396,14 @@ paths: example: finetuned_models: - id: fee37446-7fc7-42f9-a026-c6ba2fcc422d - name: chat-ft + name: prompt-completion-ft creator_id: 7a317d97-4d05-427d-9396-f31b9fb92c55 organization_id: 6bdca3d5-3eae-4de0-ac34-786d8063b7ee settings: base_model: name: medium version: 14.2.0 - base_type: BASE_TYPE_CHAT + base_type: BASE_TYPE_GENERATIVE strategy: STRATEGY_TFEW dataset_id: my-dataset-d701tr hyperparameters: @@ -14655,7 +14655,7 @@ paths: name: api-test settings: base_model: - base_type: BASE_TYPE_CHAT + base_type: BASE_TYPE_GENERATIVE dataset_id: my-dataset-id required: true parameters: @@ -14677,7 +14677,7 @@ paths: public static void main(String[] args) { Cohere cohere = Cohere.builder().token("<>").clientName("snippet").build(); - CreateFinetunedModelResponse response = cohere.finetuning().createFinetunedModel(FinetunedModel.builder().name("test-finetuned-model").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build()).datasetId("my-dataset-id").build()).build()); + CreateFinetunedModelResponse response = cohere.finetuning().createFinetunedModel(FinetunedModel.builder().name("test-finetuned-model").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_GENERATIVE).build()).datasetId("my-dataset-id").build()).build()); System.out.println(response); } @@ -14707,7 +14707,7 @@ paths: Settings: &finetuning.Settings{ DatasetId: "my-dataset-id", BaseModel: &finetuning.BaseModel{ - BaseType: finetuning.BaseTypeBaseTypeChat, + BaseType: finetuning.BaseTypeBaseTypeGenerative, }, }, }, @@ -14734,7 +14734,7 @@ paths: name: 'test-finetuned-model', settings: { base_model: { - base_type: Cohere.Finetuning.BaseType.BaseTypeChat, + base_type: Cohere.Finetuning.BaseType.BaseTypeGenerative, }, dataset_id: 'test-dataset-id', }, @@ -14823,7 +14823,7 @@ paths: "name": "test-finetuned-model", "settings": { "base_model": { - "base_type": "BASE_TYPE_CHAT", + "base_type": "BASE_TYPE_GENERATIVE", }, "dataset_id": "test-dataset-id" } @@ -14969,7 +14969,7 @@ paths: public static void main(String[] args) { Cohere cohere = Cohere.builder().token("<>").clientName("snippet").build(); - UpdateFinetunedModelResponse response = cohere.finetuning().updateFinetunedModel("test-id", FinetuningUpdateFinetunedModelRequest.builder().name("new name").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build()).datasetId("my-dataset-id").build()).build()); + UpdateFinetunedModelResponse response = cohere.finetuning().updateFinetunedModel("test-id", FinetuningUpdateFinetunedModelRequest.builder().name("new name").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_GENERATIVE).build()).datasetId("my-dataset-id").build()).build()); System.out.println(response); } @@ -15085,14 +15085,14 @@ paths: example: finetuned_model: id: fee37446-7fc7-42f9-a026-c6ba2fcc422d - name: chat-ft + name: prompt-completion-ft creator_id: 7a317d97-4d05-427d-9396-f31b9fb92c55 organization_id: 6bdca3d5-3eae-4de0-ac34-786d8063b7ee settings: base_model: name: medium version: 14.2.0 - base_type: BASE_TYPE_CHAT + base_type: BASE_TYPE_GENERATIVE strategy: STRATEGY_TFEW dataset_id: my-dataset-d701tr hyperparameters: @@ -21188,7 +21188,7 @@ components: readOnly: true wandb: $ref: "#/components/schemas/WandbConfig" - description: The Weights & Biases configuration. + description: The Weights & Biases configuration (Chat fine-tuning only). description: The configuration used for fine-tuning. required: - base_model diff --git a/fern/pages/models/the-command-family-of-models/command-r-plus.mdx b/fern/pages/models/the-command-family-of-models/command-r-plus.mdx index c9919812..9fb5f4df 100644 --- a/fern/pages/models/the-command-family-of-models/command-r-plus.mdx +++ b/fern/pages/models/the-command-family-of-models/command-r-plus.mdx @@ -89,3 +89,6 @@ Command R+ has been trained with multi-step tool use capabilities, with which it ## Temporary Context Window Caveat We have a known issue where prompts between 112K - 128K in length result in bad generations. We are working to get this resolved, and we appreciate your patience in the meantime. + +--- +Congrats on reaching the end of this page! Get an extra $1 API credit by entering the `CommandR+Docs` credit code in [your Cohere dashboard](https://dashboard.cohere.com/billing?tab=payment) \ No newline at end of file diff --git a/snippets/snippets/curl/finetuning/create-finetuned-model.sh b/snippets/snippets/curl/finetuning/create-finetuned-model.sh index 4927947e..424cc7bb 100644 --- a/snippets/snippets/curl/finetuning/create-finetuned-model.sh +++ b/snippets/snippets/curl/finetuning/create-finetuned-model.sh @@ -7,7 +7,7 @@ curl --request POST \ "name": "test-finetuned-model", "settings": { "base_model": { - "base_type": "BASE_TYPE_CHAT", + "base_type": "BASE_TYPE_GENERATIVE", }, "dataset_id": "test-dataset-id" } diff --git a/snippets/snippets/go/dataset-post/main.go b/snippets/snippets/go/dataset-post/main.go index a6c4be9f..e6d0b2da 100644 --- a/snippets/snippets/go/dataset-post/main.go +++ b/snippets/snippets/go/dataset-post/main.go @@ -27,7 +27,7 @@ func main() { &MyReader{Reader: strings.NewReader(`{"text": "The quick brown fox jumps over the lazy dog"}`), name: "test.jsonl"}, &MyReader{Reader: strings.NewReader(""), name: "a.jsonl"}, &cohere.DatasetsCreateRequest{ - Name: "embed-dataset", + Name: "prompt-completion-dataset", Type: cohere.DatasetTypeEmbedResult, }, ) diff --git a/snippets/snippets/go/finetuning/create-finetuned-model/main.go b/snippets/snippets/go/finetuning/create-finetuned-model/main.go index 7bbdb258..aee7b102 100644 --- a/snippets/snippets/go/finetuning/create-finetuned-model/main.go +++ b/snippets/snippets/go/finetuning/create-finetuned-model/main.go @@ -18,7 +18,7 @@ func main() { Settings: &finetuning.Settings{ DatasetId: "my-dataset-id", BaseModel: &finetuning.BaseModel{ - BaseType: finetuning.BaseTypeBaseTypeChat, + BaseType: finetuning.BaseTypeBaseTypeGenerative, }, }, }, diff --git a/snippets/snippets/java/app/src/main/java/DatasetPost.java b/snippets/snippets/java/app/src/main/java/DatasetPost.java index d5f34f95..9022aa20 100644 --- a/snippets/snippets/java/app/src/main/java/DatasetPost.java +++ b/snippets/snippets/java/app/src/main/java/DatasetPost.java @@ -10,7 +10,7 @@ public class DatasetPost { public static void main(String[] args) { Cohere cohere = Cohere.builder().token("<>").clientName("snippet").build(); - DatasetsCreateResponse response = cohere.datasets().create(null, Optional.empty(), DatasetsCreateRequest.builder().name("chat-dataset").type(DatasetType.CHAT_FINETUNE_INPUT).build()); + DatasetsCreateResponse response = cohere.datasets().create(null, Optional.empty(), DatasetsCreateRequest.builder().name("prompt-completion-dataset").type(DatasetType.PROMPT_COMPLETION_FINETUNE_INPUT).build()); System.out.println(response); } diff --git a/snippets/snippets/java/app/src/main/java/finetuning/CreateFinetunedModel.java b/snippets/snippets/java/app/src/main/java/finetuning/CreateFinetunedModel.java index 9633e376..6ab2fb5f 100644 --- a/snippets/snippets/java/app/src/main/java/finetuning/CreateFinetunedModel.java +++ b/snippets/snippets/java/app/src/main/java/finetuning/CreateFinetunedModel.java @@ -7,7 +7,7 @@ public class CreateFinetunedModel { public static void main(String[] args) { Cohere cohere = Cohere.builder().token("<>").clientName("snippet").build(); - CreateFinetunedModelResponse response = cohere.finetuning().createFinetunedModel(FinetunedModel.builder().name("test-finetuned-model").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build()).datasetId("my-dataset-id").build()).build()); + CreateFinetunedModelResponse response = cohere.finetuning().createFinetunedModel(FinetunedModel.builder().name("test-finetuned-model").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_GENERATIVE).build()).datasetId("my-dataset-id").build()).build()); System.out.println(response); } diff --git a/snippets/snippets/java/app/src/main/java/finetuning/UpdateFinetunedModel.java b/snippets/snippets/java/app/src/main/java/finetuning/UpdateFinetunedModel.java index 5d4b6369..33f78325 100644 --- a/snippets/snippets/java/app/src/main/java/finetuning/UpdateFinetunedModel.java +++ b/snippets/snippets/java/app/src/main/java/finetuning/UpdateFinetunedModel.java @@ -12,7 +12,7 @@ public class UpdateFinetunedModel { public static void main(String[] args) { Cohere cohere = Cohere.builder().token("<>").clientName("snippet").build(); - UpdateFinetunedModelResponse response = cohere.finetuning().updateFinetunedModel("test-id", FinetuningUpdateFinetunedModelRequest.builder().name("new name").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_CHAT).build()).datasetId("my-dataset-id").build()).build()); + UpdateFinetunedModelResponse response = cohere.finetuning().updateFinetunedModel("test-id", FinetuningUpdateFinetunedModelRequest.builder().name("new name").settings(Settings.builder().baseModel(BaseModel.builder().baseType(BaseType.BASE_TYPE_GENERATIVE).build()).datasetId("my-dataset-id").build()).build()); System.out.println(response); } diff --git a/snippets/snippets/node/finetuning/create-finetuned-model.ts b/snippets/snippets/node/finetuning/create-finetuned-model.ts index 75edd962..51f2046e 100644 --- a/snippets/snippets/node/finetuning/create-finetuned-model.ts +++ b/snippets/snippets/node/finetuning/create-finetuned-model.ts @@ -9,7 +9,7 @@ const cohere = new CohereClient({ name: 'test-finetuned-model', settings: { base_model: { - base_type: Cohere.Finetuning.BaseType.BaseTypeChat, + base_type: Cohere.Finetuning.BaseType.BaseTypeGenerative, }, dataset_id: 'test-dataset-id', }, diff --git a/snippets/snippets/python-async/dataset-post.py b/snippets/snippets/python-async/dataset-post.py index a18e27dc..b5dcc572 100644 --- a/snippets/snippets/python-async/dataset-post.py +++ b/snippets/snippets/python-async/dataset-post.py @@ -8,9 +8,9 @@ async def main(): # upload a dataset response = await co.datasets.create( - name="chat-dataset", - data=open("./chat.jsonl", "rb"), - type="chat-finetune-input", + name="prompt-completion-dataset", + data=open("./prompt-completion.jsonl", "rb"), + type="prompt-completion-finetune-input", ) # wait for validation to complete diff --git a/snippets/snippets/python/dataset-post.py b/snippets/snippets/python/dataset-post.py index a75dbe6b..549a7707 100644 --- a/snippets/snippets/python/dataset-post.py +++ b/snippets/snippets/python/dataset-post.py @@ -4,9 +4,9 @@ # upload a dataset my_dataset = co.datasets.create( - name="chat-dataset", - data=open("./chat.jsonl", "rb"), - type="chat-finetune-input", + name="prompt-completion-dataset", + data=open("./prompt-completion.jsonl", "rb"), + type="prompt-completion-finetune-input", ) # wait for validation to complete