Skip to content

Commit c85f8b5

Browse files
docs: README updates
1 parent bc4285c commit c85f8b5

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 32
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-07dea48ea85e600712dcdfd99a688f6a9cb8dd1f56d0a06e0ab54fc8a98a89b1.yml
33
openapi_spec_hash: 0d30ab04c227bf53f3109dc4d861e5dc
4-
config_hash: b1d3b26784527ee46af49c1bb9e93193
4+
config_hash: c0c9f57ab19252f82cf765939edc61de

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ chat_completion = client.chat.chat(
7575
"role": "user",
7676
}
7777
],
78-
model="palmyra-x-004",
78+
model="palmyra-x5",
7979
)
8080
print(chat_completion.choices[0].message.content)
8181
```
@@ -97,7 +97,7 @@ async def main() -> None:
9797
"role": "user",
9898
}
9999
],
100-
model="palmyra-x-004",
100+
model="palmyra-x5",
101101
)
102102
print(chat_completion.choices[0].message.content)
103103

@@ -125,7 +125,7 @@ stream = client.chat.chat(
125125
"role": "user",
126126
}
127127
],
128-
model="palmyra-x-004",
128+
model="palmyra-x5",
129129
stream=True,
130130
)
131131

@@ -153,7 +153,7 @@ stream = await client.chat.chat(
153153
"role": "user",
154154
}
155155
],
156-
model="palmyra-x-004",
156+
model="palmyra-x5",
157157
stream=True,
158158
)
159159

@@ -308,7 +308,7 @@ try:
308308
"role": "user",
309309
}
310310
],
311-
model="palmyra-x-004",
311+
model="palmyra-x5",
312312
)
313313
except writerai.APIConnectionError as e:
314314
print("The server could not be reached")
@@ -359,7 +359,7 @@ client.with_options(max_retries=5).chat.chat(
359359
"role": "user",
360360
}
361361
],
362-
model="palmyra-x-004",
362+
model="palmyra-x5",
363363
)
364364
```
365365

@@ -391,7 +391,7 @@ client.with_options(timeout=5.0).chat.chat(
391391
"role": "user",
392392
}
393393
],
394-
model="palmyra-x-004",
394+
model="palmyra-x5",
395395
)
396396
```
397397

@@ -440,7 +440,7 @@ response = client.chat.with_raw_response.chat(
440440
"content": "Write a haiku about programming",
441441
"role": "user",
442442
}],
443-
model="palmyra-x-004",
443+
model="palmyra-x5",
444444
)
445445
print(response.headers.get('X-My-Header'))
446446

@@ -464,7 +464,7 @@ with client.chat.with_streaming_response.chat(
464464
"role": "user",
465465
}
466466
],
467-
model="palmyra-x-004",
467+
model="palmyra-x5",
468468
) as response:
469469
print(response.headers.get("X-My-Header"))
470470

tests/test_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No
739739
"role": "user",
740740
}
741741
],
742-
model="palmyra-x-004",
742+
model="palmyra-x5",
743743
),
744744
ChatChatParamsNonStreaming,
745745
),
@@ -768,7 +768,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non
768768
"role": "user",
769769
}
770770
],
771-
model="palmyra-x-004",
771+
model="palmyra-x5",
772772
),
773773
ChatChatParamsNonStreaming,
774774
),
@@ -1559,7 +1559,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter)
15591559
"role": "user",
15601560
}
15611561
],
1562-
model="palmyra-x-004",
1562+
model="palmyra-x5",
15631563
),
15641564
ChatChatParamsNonStreaming,
15651565
),
@@ -1588,7 +1588,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter)
15881588
"role": "user",
15891589
}
15901590
],
1591-
model="palmyra-x-004",
1591+
model="palmyra-x5",
15921592
),
15931593
ChatChatParamsNonStreaming,
15941594
),

0 commit comments

Comments
 (0)