Pipeshift
Pipeshift #
Bases: OpenAILike
Pipeshift LLM.
Examples:
pip install llama-index-llms-pipeshift
from llama_index.llms.pipeshift import Pipeshift
# set api key in env or in llm
# import os
# os.environ["PIPESHIFT_API_KEY"] = "your api key"
llm = Pipeshift(
model="meta-llama/Meta-Llama-3.1-8B-Instruct", api_key="your_api_key"
)
resp = llm.complete("How fast is porsche gt3 rs?")
print(resp)
Source code in llama-index-integrations/llms/llama-index-llms-pipeshift/llama_index/llms/pipeshift/base.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
class_name
classmethod
#
class_name() -> str
Get class name.
Source code in llama-index-integrations/llms/llama-index-llms-pipeshift/llama_index/llms/pipeshift/base.py
74 75 76 77 |
|