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
4 changes: 2 additions & 2 deletions src/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,8 @@
"group": "OpenAI",
"pages": [
"oss/javascript/integrations/providers/openai",
"/oss/javascript/integrations/chat/openai",
"/oss/javascript/integrations/text_embedding/openai"
"/oss/integrations/chat/openai",
"/oss/integrations/text_embedding/openai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/langsmith/managing-model-configurations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The **Extra Parameters** field allows you to pass additional model parameters th
TypeError: AsyncCompletions.create() got an unexpected keyword argument 'max_concurrency'
```

If you receive an error about unnecessary parameters (which is more common when using [LangChain JS](/oss/javascript/langchain/overview) for run tracing), you can use this field to remove the extra parameters.
If you receive an error about unnecessary parameters (which is more common when using [LangChain JS](/oss/langchain/overview) for run tracing), you can use this field to remove the extra parameters.

## Tool settings

Expand Down
2 changes: 1 addition & 1 deletion src/oss/contributing/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Set up a development environment for the package(s) you're working on:
:::js
Located in `libs/providers/`, these are independently versioned packages for specific integrations. For example:
- **[`@langchain/openai`](https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-openai#readme)**: [OpenAI](/oss/integrations/providers/openai) integrations
- **[`@langchain/anthropic`](https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-anthropic#readme)**: [Anthropic](oss/javascript/integrations/providers/anthropic) integrations
- **[`@langchain/anthropic`](https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-anthropic#readme)**: [Anthropic](/oss/integrations/providers/anthropic) integrations
- **[`@langchain/google-genai`](https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-genai#readme)**: [Google Generative AI](/oss/integrations/chat/google_generative_ai) integrations
:::

Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/chat/anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ Learn more about tool calling [here](https://js.langchain.com/docs/how_to/tool_c

### Using with text splitters

Anthropic also lets you specify your own splits using [custom document](https://docs.anthropic.com/en/docs/build-with-claude/citations#custom-content-documents) types. LangChain [text splitters](/oss/concepts/text_splitters/) can be used to generate meaningful splits for this purpose. See the below example, where we split the LangChain.js README (a markdown document) and pass it to Claude as context:
Anthropic also lets you specify your own splits using [custom document](https://docs.anthropic.com/en/docs/build-with-claude/citations#custom-content-documents) types. LangChain text splitters can be used to generate meaningful splits for this purpose. See the below example, where we split the LangChain.js README (a markdown document) and pass it to Claude as context:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont have it for js


```typescript
import { ChatAnthropic } from "@langchain/anthropic";
Expand Down
10 changes: 1 addition & 9 deletions src/oss/javascript/integrations/chat/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,7 @@ console.dir(responseMessageWithLogprobs.response_metadata.logprobs, { depth: nul
}
```

## Tool calling

Tool calling with OpenAI models works in a similar to [other models](/oss/langchain/tools). Additionally, the following guides have some information especially relevant to OpenAI:

- [How to: disable parallel tool calling](/oss/langchain/tools_parallel/)
- [How to: force a tool call](/oss/how-to/tool_choice/)
- [How to: bind model-specific tool formats to a model](/oss/langchain/tools#binding-model-specific-formats-advanced).

### Custom Tools
## Custom Tools

[Custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools) support tools with arbitrary string inputs. They can be particularly useful when you expect your string arguments to be long or complex.

Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llm_caching/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Model caches
---

[Caching LLM calls](/oss/how-to/chat_model_caching) can be useful for testing, cost savings, and speed.
[Caching LLM calls](/oss/langchain/models#caching) can be useful for testing, cost savings, and speed.

Below are some integrations that allow you to cache results of individual LLM calls using different caches with different strategies.

Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/azure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Azure OpenAI
```{=mdx}

<Warning>
**You are currently on a page documenting the use of Azure OpenAI [text completion models](/oss/concepts/text_llms). The latest and most popular Azure OpenAI models are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of Azure OpenAI text completion models. The latest and most popular Azure OpenAI models are [chat completion models](/oss/langchain/models).**


Unless you are specifically using `gpt-3.5-turbo-instruct`, you are probably looking for [this page instead](/oss/integrations/chat/azure/).
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/bedrock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Bedrock
```{=mdx}

<Warning>
**You are currently on a page documenting the use of Amazon Bedrock models as [text completion models](/oss/concepts/text_llms). Many popular models available on Bedrock are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of Amazon Bedrock models as text completion models. Many popular models available on Bedrock are [chat completion models](/oss/langchain/models).**


You may be looking for [this page instead](/oss/integrations/chat/bedrock/).
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/cohere.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Cohere has marked their `generate` endpoint for LLMs as deprecated. Follow their
</Warning>

<Warning>
**You are currently on a page documenting the use of Cohere models as [text completion models](/oss/concepts/text_llms). Many popular models available on Cohere are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of Cohere models as text completion models. Many popular models available on Cohere are [chat completion models](/oss/langchain/models).**

You may be looking for [this page instead](/oss/integrations/chat/cohere/).
</Warning>
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/fireworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Fireworks
```{=mdx}

<Warning>
**You are currently on a page documenting the use of Fireworks models as [text completion models](/oss/concepts/text_llms). Many popular models available on Fireworks are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of Fireworks models as text completion models. Many popular models available on Fireworks are [chat completion models](/oss/langchain/models).**


You may be looking for [this page instead](/oss/integrations/chat/fireworks/).
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/google_vertex_ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Google Vertex AI
```{=mdx}

<Warning>
**You are currently on a page documenting the use of Google Vertex models as [text completion models](/oss/concepts/text_llms). Many popular models available on Google Vertex are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of Google Vertex models as text completion models. Many popular models available on Google Vertex are [chat completion models](/oss/langchain/models).**


You may be looking for [this page instead](/oss/integrations/chat/google_vertex_ai/).
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: LLMs
---

<Warning>
**You are currently on a page documenting the use of [text completion models](/oss/concepts/text_llms). Many of the latest and most popular models are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of text completion models. Many of the latest and most popular models are [chat completion models](/oss/langchain/models).**


Unless you are specifically using more advanced prompting techniques, you are probably looking for [this page instead](/oss/integrations/chat/).
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/mistral.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ title: MistralAI
:::

</Tip>caution
You are currently on a page documenting the use of Mistral models as [text completion models](/oss/concepts/text_llms). Many popular models available on Mistral are [chat completion models](/oss/langchain/models).
You are currently on a page documenting the use of Mistral models as text completion models. Many popular models available on Mistral are [chat completion models](/oss/langchain/models).

You may be looking for [this page instead](/oss/integrations/chat/mistral/).
:::
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/ollama.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Ollama
```{=mdx}

<Warning>
**You are currently on a page documenting the use of Ollama models as [text completion models](/oss/concepts/text_llms). Many popular models available on Ollama are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of Ollama models as text completion models. Many popular models available on Ollama are [chat completion models](/oss/langchain/models).**


You may be looking for [this page instead](/oss/integrations/chat/ollama/).
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: OpenAI
```{=mdx}

<Warning>
**You are currently on a page documenting the use of OpenAI [text completion models](/oss/concepts/text_llms). The latest and most popular OpenAI models are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of OpenAI text completion models. The latest and most popular OpenAI models are [chat completion models](/oss/langchain/models).**


Unless you are specifically using `gpt-3.5-turbo-instruct`, you are probably looking for [this page instead](/oss/integrations/chat/openai/).
Expand Down
2 changes: 1 addition & 1 deletion src/oss/javascript/integrations/llms/together.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: TogetherAI
---

<Warning>
**You are currently on a page documenting the use of Together AI models as [text completion models](/oss/concepts/text_llms). Many popular models available on Together AI are [chat completion models](/oss/langchain/models).**
**You are currently on a page documenting the use of Together AI models as text completion models. Many popular models available on Together AI are [chat completion models](/oss/langchain/models).**

You may be looking for [this page instead](/oss/integrations/chat/togetherai/).
</Warning>
Expand Down
Loading