Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
在 LlamaIndex Python 应用中配置 HiLinkup 聊天模型。
OpenAILike
POST /v1/chat/completions
python -m pip install llama-index-llms-openai-like
import os from llama_index.llms.openai_like import OpenAILike llm = OpenAILike( model="aliyun/kimi-k3", api_key=os.environ["HILINKUP_API_KEY"], api_base="https://api.hilinkup.com/v1", is_chat_model=True, timeout=60.0, ) response = llm.complete("用一句话解释什么是 RAG。") print(response.text)
/v1/models