Package com.tnsai.llm.providers
Class YiClient
java.lang.Object
com.tnsai.llm.providers.AbstractLLMClient
com.tnsai.llm.providers.AbstractOpenAICompatibleClient
com.tnsai.llm.providers.YiClient
- All Implemented Interfaces:
com.tnsai.llm.LLMClient
01.AI Yi LLM client.
01.AI (founded by Kai-Fu Lee) hosts the Yi family of open and
proprietary models. Its API is OpenAI-compatible — the same
chat-completions wire format as GroqClient /
XAIGrokClient / NvidiaNIMClient. The cloud endpoint
defaults to https://api.lingyiwanwu.com/v1.
Supported models (at time of writing):
- yi-large — flagship Yi-Large, frontier tier
- yi-large-turbo — faster / cheaper Yi-Large variant
- yi-lightning — small-batch / low-latency Yi-Lightning
- yi-vision — multimodal Yi-Vision (image input)
The catalog evolves; check the live list at platform.lingyiwanwu.com/docs/api-reference.
Configuration via environment variable:
YI_API_KEY— Required for the cloud endpoint.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.tnsai.llm.providers.AbstractOpenAICompatibleClient
chat, streamChatMethods inherited from class com.tnsai.llm.providers.AbstractLLMClient
getBaseUrl, getCallTimeoutMs, getMaxTokens, getModel, getTemperature, getTopPMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tnsai.llm.LLMClient
chat, chat, chat, chat, chat, getCapabilities, getProviderName, listModels, streamChat, streamChat, streamChatWithHandler, streamChatWithHandler, streamChatWithSpec, streamChatWithSpec
-
Constructor Details
-
YiClient
-
YiClient
-
YiClient
-
YiClient
-
YiClient
-
YiClient
-