Skip to content

Commit

Permalink
Add spec changes
Browse files Browse the repository at this point in the history
Co-authored-by: billytrend-cohere <[email protected]>
  • Loading branch information
platform-endpoints and billytrend-cohere committed Oct 7, 2024
1 parent 15bb32b commit 2d36dae
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions cohere-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down Expand Up @@ -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" \
Expand Down Expand Up @@ -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" \
Expand Down Expand Up @@ -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" \
Expand Down Expand Up @@ -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" \
Expand Down Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion snippets/snippets/curl/chat-v2-post/default.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion snippets/snippets/curl/chat-v2-post/documents.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion snippets/snippets/curl/chat-v2-post/stream.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion snippets/snippets/curl/chat-v2-post/tools.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion snippets/snippets/curl/embed-v2-post.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion snippets/snippets/curl/rerank-v2-post.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down

0 comments on commit 2d36dae

Please sign in to comment.