From f45536059aed5d5a8e45fd1f4004505bb3ff0142 Mon Sep 17 00:00:00 2001 From: platform-endpoints Date: Tue, 19 Nov 2024 19:17:45 +0000 Subject: [PATCH] Add spec changes Co-authored-by: Max Shkutnyk --- cohere-openapi.yaml | 8 ++++---- snippets/snippets/curl/chat-v2-post/default.sh | 4 ++-- snippets/snippets/curl/chat-v2-post/stream.sh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cohere-openapi.yaml b/cohere-openapi.yaml index d49fa52e..256363fd 100644 --- a/cohere-openapi.yaml +++ b/cohere-openapi.yaml @@ -6195,7 +6195,7 @@ paths: } - sdk: curl name: Default - code: |- + code: | curl --request POST \ --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ @@ -6208,7 +6208,7 @@ paths: "role": "user", "content": "Hello world!" } - ], + ] }' request: model: "command-r" @@ -7093,7 +7093,7 @@ paths: } - sdk: curl name: Streaming - code: |- + code: | curl --request POST \ --url https://api.cohere.com/v2/chat \ --header 'accept: application/json' \ @@ -7107,7 +7107,7 @@ paths: "role": "user", "content": "Hello world!" } - ], + ] }' request: model: "command-r" diff --git a/snippets/snippets/curl/chat-v2-post/default.sh b/snippets/snippets/curl/chat-v2-post/default.sh index 2fd02643..63de9237 100644 --- a/snippets/snippets/curl/chat-v2-post/default.sh +++ b/snippets/snippets/curl/chat-v2-post/default.sh @@ -10,5 +10,5 @@ curl --request POST \ "role": "user", "content": "Hello world!" } - ], - }' \ No newline at end of file + ] + }' diff --git a/snippets/snippets/curl/chat-v2-post/stream.sh b/snippets/snippets/curl/chat-v2-post/stream.sh index d5010d57..a217d97d 100644 --- a/snippets/snippets/curl/chat-v2-post/stream.sh +++ b/snippets/snippets/curl/chat-v2-post/stream.sh @@ -11,5 +11,5 @@ curl --request POST \ "role": "user", "content": "Hello world!" } - ], - }' \ No newline at end of file + ] + }'