From 2d36dae3b33f51a57048b3fad9faea7bb0cfc363 Mon Sep 17 00:00:00 2001 From: platform-endpoints Date: Mon, 7 Oct 2024 14:05:07 +0000 Subject: [PATCH] Add spec changes Co-authored-by: billytrend-cohere <144115527+billytrend-cohere@users.noreply.github.com> --- cohere-openapi.yaml | 12 ++++++------ snippets/snippets/curl/chat-v2-post/default.sh | 2 +- snippets/snippets/curl/chat-v2-post/documents.sh | 2 +- snippets/snippets/curl/chat-v2-post/stream.sh | 2 +- snippets/snippets/curl/chat-v2-post/tools.sh | 2 +- snippets/snippets/curl/embed-v2-post.sh | 2 +- snippets/snippets/curl/rerank-v2-post.sh | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cohere-openapi.yaml b/cohere-openapi.yaml index caa8019b..f8b47c9d 100644 --- a/cohere-openapi.yaml +++ b/cohere-openapi.yaml @@ -6186,7 +6186,7 @@ paths: name: Default code: |- curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ @@ -6494,7 +6494,7 @@ paths: name: Documents code: |- curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ @@ -7103,7 +7103,7 @@ paths: name: Streaming code: |- curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ @@ -7452,7 +7452,7 @@ paths: name: Tools code: > curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ @@ -10474,7 +10474,7 @@ paths: name: cURL code: |- curl --request POST \ - --url https://api.cohere.com/v1/embed \ + --url https://api.cohere.com/v2/embed \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ @@ -14089,7 +14089,7 @@ paths: name: cURL code: >- curl --request POST \ - --url https://api.cohere.com/v1/rerank \ + --url https://api.cohere.com/v2/rerank \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ diff --git a/snippets/snippets/curl/chat-v2-post/default.sh b/snippets/snippets/curl/chat-v2-post/default.sh index 082ef6ac..ce038884 100644 --- a/snippets/snippets/curl/chat-v2-post/default.sh +++ b/snippets/snippets/curl/chat-v2-post/default.sh @@ -1,5 +1,5 @@ curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ diff --git a/snippets/snippets/curl/chat-v2-post/documents.sh b/snippets/snippets/curl/chat-v2-post/documents.sh index f3ac795e..5f443a55 100644 --- a/snippets/snippets/curl/chat-v2-post/documents.sh +++ b/snippets/snippets/curl/chat-v2-post/documents.sh @@ -1,5 +1,5 @@ curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ diff --git a/snippets/snippets/curl/chat-v2-post/stream.sh b/snippets/snippets/curl/chat-v2-post/stream.sh index 4cf58758..3b98898d 100644 --- a/snippets/snippets/curl/chat-v2-post/stream.sh +++ b/snippets/snippets/curl/chat-v2-post/stream.sh @@ -1,5 +1,5 @@ curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ diff --git a/snippets/snippets/curl/chat-v2-post/tools.sh b/snippets/snippets/curl/chat-v2-post/tools.sh index badcbe8c..4df6b52d 100644 --- a/snippets/snippets/curl/chat-v2-post/tools.sh +++ b/snippets/snippets/curl/chat-v2-post/tools.sh @@ -1,5 +1,5 @@ curl --request POST \ - --url https://api.cohere.com/v1/chat \ + --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ diff --git a/snippets/snippets/curl/embed-v2-post.sh b/snippets/snippets/curl/embed-v2-post.sh index e2a798db..9e779426 100644 --- a/snippets/snippets/curl/embed-v2-post.sh +++ b/snippets/snippets/curl/embed-v2-post.sh @@ -1,5 +1,5 @@ curl --request POST \ - --url https://api.cohere.com/v1/embed \ + --url https://api.cohere.com/v2/embed \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \ diff --git a/snippets/snippets/curl/rerank-v2-post.sh b/snippets/snippets/curl/rerank-v2-post.sh index 11dead44..7b5fb3ac 100644 --- a/snippets/snippets/curl/rerank-v2-post.sh +++ b/snippets/snippets/curl/rerank-v2-post.sh @@ -1,5 +1,5 @@ curl --request POST \ - --url https://api.cohere.com/v1/rerank \ + --url https://api.cohere.com/v2/rerank \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header "Authorization: bearer $CO_API_KEY" \