Instructor

Latest version: v1.7.4

Safety actively analyzes 715032 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 14

1.2.0

What's Changed
* Add support for cohere models by lidiyam in https://github.com/jxnl/instructor/pull/585
* adding AnthropicVertex by dlubom in https://github.com/jxnl/instructor/pull/595
* fix: typo textblocks vi-fr in blog post by inn-0 in https://github.com/jxnl/instructor/pull/596
* Document use of SkipJsonSchema for omitting fields by boydgreenfield in https://github.com/jxnl/instructor/pull/597
* Support python 3.9 by RedTachyon in https://github.com/jxnl/instructor/pull/601

New Contributors
* lidiyam made their first contribution in https://github.com/jxnl/instructor/pull/585
* dlubom made their first contribution in https://github.com/jxnl/instructor/pull/595
* boydgreenfield made their first contribution in https://github.com/jxnl/instructor/pull/597
* RedTachyon made their first contribution in https://github.com/jxnl/instructor/pull/601

**Full Changelog**: https://github.com/jxnl/instructor/compare/1.1.0...1.2.0

1.1.0

Usage

py hl_lines="5 13"
from openai import OpenAI()
import instructor

Enables `response_model`
client = instructor.patch(OpenAI())

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

user = client.chat.completions.create(
model="gpt-3.5-turbo",
response_model=UserDetail,
messages=[
{"role": "user", "content": "Extract Jason is 25 years old"},
]
)

assert isinstance(user, UserDetail)
assert user.name == "Jason"
assert user.age == 25


note "Using `openai<1.0.0`"

If you're using `openai<1.0.0` then make sure you `pip install instructor<0.3.0`
where you can patch a global client like so:

python hl_lines="4 8"
import openai
import instructor

instructor.patch()

user = openai.ChatCompletion.create(
...,
response_model=UserDetail,
)


What's Changed
* Migration to OpenAI 1.1.0 by grit-app in https://github.com/jxnl/instructor/pull/152

New Contributors
* grit-app made their first contribution in https://github.com/jxnl/instructor/pull/152

**Full Changelog**: https://github.com/jxnl/instructor/compare/0.2.11...0.3.0

1.0.3

What's Changed
* Fixed deps for 2.7.0b01

New Contributors
* jd-solanki made their first contribution in https://github.com/jxnl/instructor/pull/570

**Full Changelog**: https://github.com/jxnl/instructor/compare/1.0.2...1.0.3

1.0.2

What's Changed
* feat: Partial jiter by jxnl in https://github.com/jxnl/instructor/pull/563
* feat: support anthropic tools by jxnl in https://github.com/jxnl/instructor/pull/569
* fix: extras dependencies to truly be optional by ameade in https://github.com/jxnl/instructor/pull/565

New Contributors
* ameade made their first contribution in https://github.com/jxnl/instructor/pull/565

**Full Changelog**: https://github.com/jxnl/instructor/compare/1.0.1...1.0.2

1.0.1

What's Changed
* Support Groq 556 by rabem00 in https://github.com/jxnl/instructor/pull/561
* Support Anthropic Reasking jxnl in https://github.com/jxnl/instructor/pull/560
* Anthropic and Groq are optional installs

New Contributors
* valgaze made their first contribution in https://github.com/jxnl/instructor/pull/554
* rabem00 made their first contribution in https://github.com/jxnl/instructor/pull/561

**Full Changelog**: https://github.com/jxnl/instructor/compare/1.0.0...1.0.1

1.0

**Full Changelog**: https://github.com/jxnl/instructor/compare/0.2.11...0.3.0rc

Page 6 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.