Nebius
NebiusLLM #
Bases: OpenAILike
Nebius AI Studio LLM class.
Examples:
pip install llama-index-llms-nebius
from llama_index.llms.nebius import NebiusLLM
# set api key in env or in llm
# import os
# os.environ["NEBIUS_API_KEY"] = "your api key"
llm = NebiusLLM(
model="mistralai/Mixtral-8x7B-Instruct-v0.1", api_key="your_api_key"
)
resp = llm.complete("Who is Paul Graham?")
print(resp)
Source code in llama-index-integrations/llms/llama-index-llms-nebius/llama_index/llms/nebius/base.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
class_name
classmethod
#
class_name() -> str
Get class name.
Source code in llama-index-integrations/llms/llama-index-llms-nebius/llama_index/llms/nebius/base.py
49 50 51 52 |
|