Skip to main content

字符串输入、字符串输出 llms

¥String-in, string-out llms

tip

你可能正在寻找 聊天模型概念指南 页面以获取更多信息。

¥You are probably looking for the Chat Model Concept Guide page for more information.

LangChain 实现了较老的语言模型,这些模型以字符串为输入,并返回字符串作为输出。这些模型的命名通常不带 "聊天" 前缀(例如,OllamaAnthropicOpenAI 等),但可能包含 "LLM" 后缀(例如,OpenAILLM 等)。这些模型实现了 BaseLLM 接口。

¥LangChain has implementations for older language models that take a string as input and return a string as output. These models are typically named without the "Chat" prefix (e.g., Ollama, Anthropic, OpenAI, etc.), and may include the "LLM" suffix (e.g., OpenAILLM, etc.). These models implement the BaseLLM interface.

用户应该几乎只使用较新的 聊天模型,因为大多数模型提供商都采用了类似聊天的界面来与语言模型交互。

¥Users should be using almost exclusively the newer Chat Models as most model providers have adopted a chat like interface for interacting with language models.