Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 34 additions & 34 deletions src/libs/Cohere/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ paths:

(async () => {
const response = await cohere.chat({
model: 'command-a-03-2025',
model: 'command-a-plus-05-2026',
messages: [
{
role: 'user',
Expand All @@ -2220,7 +2220,7 @@ paths:


response = co.chat(
model="command-a-03-2025",
model="command-a-plus-05-2026",
messages=[{"role": "user", "content": "Tell me about LLMs"}],
)

Expand All @@ -2239,7 +2239,7 @@ paths:

async def main():
response = await co.chat(
model="command-a-03-2025",
model="command-a-plus-05-2026",
messages=[{"role": "user", "content": "Tell me about LLMs"}],
)
print(response)
Expand Down Expand Up @@ -2267,7 +2267,7 @@ paths:
resp, err := co.V2.Chat(
context.TODO(),
&cohere.V2ChatRequest{
Model: "command-a-03-2025",
Model: "command-a-plus-05-2026",
Messages: cohere.ChatMessages{
{
Role: "user",
Expand Down Expand Up @@ -2313,7 +2313,7 @@ paths:
.v2()
.chat(
V2ChatRequest.builder()
.model("command-a-03-2025")
.model("command-a-plus-05-2026")
.messages(
List.of(
ChatMessageV2.user(
Expand All @@ -2334,7 +2334,7 @@ paths:
--header 'content-type: application/json' \
--header "Authorization: bearer $CO_API_KEY" \
--data '{
"model": "command-a-03-2025",
"model": "command-a-plus-05-2026",
"messages": [
{
"role": "user",
Expand All @@ -2343,7 +2343,7 @@ paths:
]
}'
request:
model: 'command-a-03-2025'
model: 'command-a-plus-05-2026'
messages:
- role: 'user'
content: 'Tell me about LLMs'
Expand Down Expand Up @@ -2435,7 +2435,7 @@ paths:

(async () => {
const response = await cohere.chat({
model: 'command-a-03-2025',
model: 'command-a-plus-05-2026',
messages: [
{
role: 'user',
Expand Down Expand Up @@ -2486,7 +2486,7 @@ paths:


response = co.chat(
model="command-a-03-2025",
model="command-a-plus-05-2026",
messages=[{
"role": "user",
"content": "Who is more popular: Nsync or Backstreet Boys?"
Expand Down Expand Up @@ -2552,7 +2552,7 @@ paths:
.v2()
.chat(
V2ChatRequest.builder()
.model("command-a-03-2025")
.model("command-a-plus-05-2026")
.messages(
List.of(
ChatMessageV2.user(
Expand Down Expand Up @@ -2691,7 +2691,7 @@ paths:
resp, err := co.V2.Chat(
context.TODO(),
&cohere.V2ChatRequest{
Model: "command-a-03-2025",
Model: "command-a-plus-05-2026",
Messages: cohere.ChatMessages{
{
Role: "user",
Expand Down Expand Up @@ -2754,7 +2754,7 @@ paths:
--header 'content-type: application/json' \
--header "Authorization: bearer $CO_API_KEY" \
--data '{
"model": "command-a-03-2025",
"model": "command-a-plus-05-2026",
"documents": [
{
"data": {
Expand Down Expand Up @@ -2789,7 +2789,7 @@ paths:
]
}'
request:
model: 'command-a-03-2025'
model: 'command-a-plus-05-2026'
documents:
- data:
content: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters'
Expand Down Expand Up @@ -3265,7 +3265,7 @@ paths:

(async () => {
const stream = await cohere.chatStream({
model: 'command-a-03-2025',
model: 'command-a-plus-05-2026',
messages: [
{
role: 'user',
Expand All @@ -3290,7 +3290,7 @@ paths:


response = co.chat_stream(
model="command-a-03-2025",
model="command-a-plus-05-2026",
messages=[{"role": "user", "content": "Tell me about LLMs"}],
)

Expand Down Expand Up @@ -3324,7 +3324,7 @@ paths:
.v2()
.chatStream(
V2ChatStreamRequest.builder()
.model("command-a-03-2025")
.model("command-a-plus-05-2026")
.messages(
List.of(
ChatMessageV2.user(
Expand Down Expand Up @@ -3373,7 +3373,7 @@ paths:
resp, err := co.V2.ChatStream(
context.TODO(),
&cohere.V2ChatStreamRequest{
Model: "command-a-03-2025",
Model: "command-a-plus-05-2026",
Messages: cohere.ChatMessages{
{
Role: "user",
Expand Down Expand Up @@ -3419,7 +3419,7 @@ paths:
--header "Authorization: bearer $CO_API_KEY" \
--data '{
"stream": true,
"model": "command-a-03-2025",
"model": "command-a-plus-05-2026",
"messages": [
{
"role": "user",
Expand All @@ -3428,7 +3428,7 @@ paths:
]
}'
request:
model: 'command-a-03-2025'
model: 'command-a-plus-05-2026'
messages:
- role: 'user'
content: 'Tell me about LLMs'
Expand Down Expand Up @@ -3671,7 +3671,7 @@ paths:

(async () => {
const response = await cohere.chat({
model: 'command-a-03-2025',
model: 'command-a-plus-05-2026',
messages: [
{
role: 'user',
Expand Down Expand Up @@ -3900,7 +3900,7 @@ paths:
resp, err := co.V2.Chat(
context.TODO(),
&cohere.V2ChatRequest{
Model: "command-a-03-2025",
Model: "command-a-plus-05-2026",
Messages: cohere.ChatMessages{
{
Role: "user",
Expand Down Expand Up @@ -3963,7 +3963,7 @@ paths:
--header 'content-type: application/json' \
--header "Authorization: bearer $CO_API_KEY" \
--data '{
"model": "command-a-03-2025",
"model": "command-a-plus-05-2026",
"tools": [
{
"type": "function",
Expand Down Expand Up @@ -4342,7 +4342,7 @@ paths:

(async () => {
const stream = await cohere.chatStream({
model: 'command-a-03-2025',
model: 'command-a-plus-05-2026',
documents: [
{
data: {
Expand Down Expand Up @@ -4395,7 +4395,7 @@ paths:


response = co.chat_stream(
model="command-a-03-2025",
model="command-a-plus-05-2026",
messages=[{"role": "user", "content": "Who is more popular: Nsync or Backstreet Boys?"}],
documents=[
{
Expand Down Expand Up @@ -4455,7 +4455,7 @@ paths:
.v2()
.chatStream(
V2ChatStreamRequest.builder()
.model("command-a-03-2025")
.model("command-a-plus-05-2026")
.messages(
List.of(
ChatMessageV2.user(
Expand Down Expand Up @@ -4522,7 +4522,7 @@ paths:
resp, err := co.V2.ChatStream(
context.TODO(),
&cohere.V2ChatStreamRequest{
Model: "command-a-03-2025",
Model: "command-a-plus-05-2026",
Documents: []*cohere.V2ChatStreamRequestDocumentsItem{
{
Document: &cohere.Document{
Expand Down Expand Up @@ -4600,7 +4600,7 @@ paths:
--header "Authorization: bearer $CO_API_KEY" \
--data "{
\"stream\": true,
\"model\": \"command-a-03-2025\",
\"model\": \"command-a-plus-05-2026\",
\"documents\": [
{
\"data\": {
Expand Down Expand Up @@ -4636,7 +4636,7 @@ paths:
}"
request:
stream: true
model: 'command-a-03-2025'
model: 'command-a-plus-05-2026'
documents:
- data:
content: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters'
Expand Down Expand Up @@ -4872,7 +4872,7 @@ paths:

(async () => {
const stream = await cohere.chatStream({
model: 'command-a-03-2025',
model: 'command-a-plus-05-2026',
messages: [
{
role: 'user',
Expand Down Expand Up @@ -4937,7 +4937,7 @@ paths:


response = co.chat_stream(
model="command-a-03-2025",
model="command-a-plus-05-2026",
messages=[
{
"role": "user",
Expand Down Expand Up @@ -5015,7 +5015,7 @@ paths:
.v2()
.chatStream(
V2ChatStreamRequest.builder()
.model("command-a-03-2025")
.model("command-a-plus-05-2026")
.tools(
List.of(
ToolV2.builder()
Expand Down Expand Up @@ -5108,7 +5108,7 @@ paths:
resp, err := co.V2.ChatStream(
context.TODO(),
&cohere.V2ChatStreamRequest{
Model: "command-a-03-2025",
Model: "command-a-plus-05-2026",
Messages: cohere.ChatMessages{
{
Role: "user",
Expand Down Expand Up @@ -5189,7 +5189,7 @@ paths:
--header "Authorization: bearer $CO_API_KEY" \
--data '{
"stream": true,
"model": "command-a-03-2025",
"model": "command-a-plus-05-2026",
"tools": [
{
"type": "function",
Expand Down Expand Up @@ -5233,7 +5233,7 @@ paths:
}'
request:
stream: true
model: 'command-a-03-2025'
model: 'command-a-plus-05-2026'
tools:
- type: 'function'
function:
Expand Down