Skip to content

Commit 73b6b79

Browse files
authored
Fixing a typo in chat_completion example (#2910)
1 parent d2ececf commit 73b6b79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/huggingface_hub/inference/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ def chat_completion(
925925
... messages=messages,
926926
... response_format=response_format,
927927
... max_tokens=500,
928-
)
928+
... )
929929
>>> response.choices[0].message.content
930930
'{\n\n"activity": "bike ride",\n"animals": ["puppy", "cat", "raccoon"],\n"animals_seen": 3,\n"location": "park"}'
931931
```

src/huggingface_hub/inference/_generated/_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ async def chat_completion(
965965
... messages=messages,
966966
... response_format=response_format,
967967
... max_tokens=500,
968-
)
968+
... )
969969
>>> response.choices[0].message.content
970970
'{\n\n"activity": "bike ride",\n"animals": ["puppy", "cat", "raccoon"],\n"animals_seen": 3,\n"location": "park"}'
971971
```

0 commit comments

Comments
 (0)