Skip to content

Commit c84be49

Browse files
authored
Update integrating-generative-apis-with-popular-tools.mdx
1 parent e94455f commit c84be49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ client = OpenAI(
5555

5656
### Using OpenAI client for text generation
5757

58-
To use OpenAI client for text generation, you can create a `ChatCompletion` object and call the `create` method:
58+
To use OpenAI client for text generation, you can create a `client.chat.completions` object and call the `create` method:
5959
```python
6060
response = client.chat.completions.create(
6161
model="llama-3.1-8b-instruct",

0 commit comments

Comments
 (0)