Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenAI Assistant docs #3207

Merged
merged 1 commit into from
Nov 9, 2023
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
4 changes: 2 additions & 2 deletions docs/docs/modules/agents/agent_types/openai_assistant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ We've implemented the assistant API in LangChain with some helpful abstractions.
Creating an assistant is easy. Use the `createAssistant` method and pass in a model ID, and optionally more parameters to further customize your assistant.

```typescript
import { OpenAIAssistantRunnable } from "experimental/openai_assistant";
import { OpenAIAssistantRunnable } from "langchain/experimental/openai_assistant";

const assistant = await OpenAIAssistantRunnable.createAssistant({
model: "gpt-4-1106-preview",
Expand Down Expand Up @@ -60,7 +60,7 @@ In this next example we'll show how you can turn your assistant into an agent.
```typescript
import { AgentExecutor } from "langchain/agents";
import { StructuredTool } from "langchain/tools";
import { OpenAIAssistantRunnable } from "experimental/openai_assistant";
import { OpenAIAssistantRunnable } from "langchain/experimental/openai_assistant";
```

The first step is to define a list of tools you want to pass to your assistant.
Expand Down