Skip to content

Commit

Permalink
fix: format code blocks in version-1.md to follow Black standards
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Nov 23, 2024
1 parent 30dcb7e commit 491027d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/blog/posts/version-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ Except now, any default arguments you want to place into the `create` call will
IF you know you want to pass in tempurature, seed, or model, you can do so.

```python

import openai
import instructor

client = instructor.from_openai(
openai.OpenAI(),
model="gpt-4-turbo-preview",
temperature=0.2
temperature=0.2,
)
```

Expand Down Expand Up @@ -96,17 +95,17 @@ import openai
import instructor
from pydantic import BaseModel


class User(BaseModel):
name: str
age: int


client = instructor.from_openai(openai.OpenAI())

user = client.chat.completions.create(
model="gpt-4-turbo-preview",
messages=[
{"role": "user", "content": "Create a user"},
],
messages=[{"role": "user", "content": "Create a user"}],
response_model=User,
)
```
Expand Down

0 comments on commit 491027d

Please sign in to comment.