llama-index llms octoai integration
Project description
LlamaIndex Llms Integration: OctoAI
Using the OctoAI LLMs Integration is a simple as:
from llama_index.llms.octoai import OctoAI
octoai = OctoAI(token=OCTOAI_API_KEY)
response = octoai.complete("Paul Graham is ")
print(response)
Calling chat
with a list of messages
from llama_index.core.llms import ChatMessage
messages = [
ChatMessage(
role="system",
content="Below is an instruction that describes a task. Write a response that appropriately completes the request.",
),
ChatMessage(role="user", content="Write a blog about Seattle"),
]
response = octoai.chat(messages)
print(response)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_llms_octoai-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_llms_octoai-0.3.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a55d7da3c1ea2cd1d8710704a72aece08cc4c5dc62969b20ae6f5d3f0818e447 |
|
MD5 | 7299f66351390883684b2a2b2c76c0df |
|
BLAKE2b-256 | ae610836076026dcbcf6a7c3ea0818331d337d2eea4b37076d02da2df278cabd |
File details
Details for the file llama_index_llms_octoai-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_llms_octoai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7795e37670fb0708c35aac00bca7c0ede9902d1ef01d1a5a272a7a0425d19987 |
|
MD5 | a260da24166aaf78f8a2b0cf4d2e6c70 |
|
BLAKE2b-256 | 34d486d2cb9df2f74a4cebeed87e3faa2faacff66c87f7a93140daba846cfb6a |