Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing

Two packages, one repo: [`python/`](./python) (`interfaze-langchain`) and [`js/`](./js) (`@interfaze/langchain`). A change to one usually needs the same change to the other — the two are kept behaviourally identical.
Two packages, one repo: [`python/`](./python) (`interfaze-langchain`) and [`js/`](./js) (`@interfaze-ai/langchain`). A change to one usually needs the same change to the other — the two are kept behaviourally identical.

## Setup

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Interfaze LangChain SDK

The official [LangChain](https://www.langchain.com) integration for [Interfaze](https://interfaze.ai), for both **Python** (`interfaze-langchain`) and **TypeScript / JavaScript** (`@interfaze/langchain`).
The official [LangChain](https://www.langchain.com) integration for [Interfaze](https://interfaze.ai), for both **Python** (`interfaze-langchain`) and **TypeScript / JavaScript** (`@interfaze-ai/langchain`).

[Docs](https://interfaze.ai/docs) · [limits](https://interfaze.ai/docs/limits) · [pricing](https://interfaze.ai/pricing) · [dashboard](https://interfaze.ai) · [Python SDK](https://github.com/InterfazeAI/interfaze-python) · [TypeScript / JavaScript SDK](https://github.com/InterfazeAI/interfaze-js)

Expand All @@ -17,7 +17,7 @@ pip install interfaze-langchain
TypeScript / JavaScript:

```bash
npm install @interfaze/langchain
npm install @interfaze-ai/langchain
```

The TS structured-output and tool examples use `zod` for schemas (`npm install zod`); it's an optional peer.
Expand All @@ -35,7 +35,7 @@ llm = ChatInterfaze(api_key="sk_...") # or set INTERFAZE_API_KEY and call ChatI
TypeScript:

```ts
import { ChatInterfaze } from "@interfaze/langchain";
import { ChatInterfaze } from "@interfaze-ai/langchain";

const llm = new ChatInterfaze({ apiKey: "sk_..." }); // or set INTERFAZE_API_KEY and call new ChatInterfaze()
```
Expand Down
8 changes: 4 additions & 4 deletions js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ The official [LangChain](https://js.langchain.com) integration for [Interfaze](h
## Install

```bash
npm install @interfaze/langchain
# or: yarn add @interfaze/langchain · pnpm add @interfaze/langchain · bun add @interfaze/langchain
npm install @interfaze-ai/langchain
# or: yarn add @interfaze-ai/langchain · pnpm add @interfaze-ai/langchain · bun add @interfaze-ai/langchain
```

`@langchain/openai`, `@langchain/core`, and `interfaze` are peer dependencies - `@interfaze/langchain` builds `ChatInterfaze` on top of them. The structured-output and tool examples below use `zod` for schemas (`npm install zod`); it's an optional peer.
`@langchain/openai`, `@langchain/core`, and `interfaze` are peer dependencies - `@interfaze-ai/langchain` builds `ChatInterfaze` on top of them. The structured-output and tool examples below use `zod` for schemas (`npm install zod`); it's an optional peer.

## Setup

```ts
import { ChatInterfaze } from "@interfaze/langchain";
import { ChatInterfaze } from "@interfaze-ai/langchain";

const llm = new ChatInterfaze({ apiKey: "sk_..." }); // or set INTERFAZE_API_KEY and call new ChatInterfaze()
```
Expand Down
2 changes: 1 addition & 1 deletion js/jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@interfaze/langchain",
"name": "@interfaze-ai/langchain",
"version": "1.0.0",
"exports": "./src/index.ts",
"publish": {
Expand Down
4 changes: 2 additions & 2 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@interfaze/langchain",
"name": "@interfaze-ai/langchain",
"version": "1.0.0",
"description": "Interfaze LangChain integration for TypeScript/JavaScript",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion js/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class ChatInterfaze extends ChatOpenAICompletions {
});
this.lc_serializable = false;
this.interfazeReasoningEffort = reasoningEffort;
this._addVersion("@interfaze/langchain", VERSION);
this._addVersion("@interfaze-ai/langchain", VERSION);
}

// The parent spreads clientConfig wholesale, landing the api key and every default
Expand Down
2 changes: 1 addition & 1 deletion js/test/identity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("provider identity", () => {

it("records its own package version alongside core's", () => {
const versions = (model as unknown as { metadata?: { versions?: Record<string, string> } }).metadata?.versions ?? {};
expect(versions["@interfaze/langchain"]).toBe(VERSION);
expect(versions["@interfaze-ai/langchain"]).toBe(VERSION);
expect(versions["@langchain/core"]).toBeTypeOf("string");
});

Expand Down