Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bun add @diffbot/ai-sdk

`@diffbot/typescript` is a dependency of this package, so that one install is the Diffbot install.
Add `@diffbot/typescript` yourself only when you construct a `DiffbotClient` to inject, and keep it
on the same minor (`^0.3.0` today).
on the same minor as this package's `@diffbot/typescript` dependency in `package.json`.

Peers:

Expand Down Expand Up @@ -98,9 +98,9 @@ does not take a `DiffbotClient` — the provider uses the AI SDK HTTP stack, not

### Injected client

Keep an injected `@diffbot/typescript` on the same minor as this package's dependency (`^0.3.0`). A
second copy from another minor fails typechecking with a private `fetchFn` error. One 0.3.x copy in
the tree is the normal npm layout.
Keep an injected `@diffbot/typescript` on the same minor as this package's dependency (the range in
`package.json`). A second copy from another minor fails typechecking with a private `fetchFn` error.
One copy on that minor in the tree is the normal npm layout.

```ts
import { DiffbotClient } from "@diffbot/typescript";
Expand Down