Skip to main content

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

llama_index_llms_octoai-0.2.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

llama_index_llms_octoai-0.2.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_llms_octoai-0.2.1.tar.gz.

File metadata

  • Download URL: llama_index_llms_octoai-0.2.1.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

Hashes for llama_index_llms_octoai-0.2.1.tar.gz
Algorithm Hash digest
SHA256 71e9590214ffb86de9100282f12c8bc5372f554d55b6ccbb838f2b7819f06caf
MD5 81029f21a687a35863da125c51998b71
BLAKE2b-256 1f7d0a0dd6bf5a527176405975a94218df406f1d487df38c94c889d21f616de3

See more details on using hashes here.

File details

Details for the file llama_index_llms_octoai-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_llms_octoai-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f31ee744731a3c6c40dbe5214e220fdd6d6bd233ff48eb5ae4d87f08e526a7ea
MD5 a402b6ddcec0ffe38bafca36a8d8a941
BLAKE2b-256 c175285a8c4b8af81105ba91370ece2e1588109feae537c4c267767786c54d97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page