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.6.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_llms_octoai-0.6.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_llms_octoai-0.6.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_llms_octoai-0.6.0.tar.gz
Algorithm Hash digest
SHA256 3e3f98a25a961e409c1d4d223d7881d9325647dced349ee014f28961412449d7
MD5 cee9e2a87c13cb24cdb1161bb22d9b91
BLAKE2b-256 3cb0716378d44d5a30fbb67383860ee58f71aba5af3b642ab5bd559c788d2d40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_llms_octoai-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_llms_octoai-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 069936d8dfa5a0fc624778e6d9f1d18acfbcc23c68b879942a73cbd85310dce0
MD5 6c98e2d639d9bbae7e9e932ab98bc938
BLAKE2b-256 d6d0b10b21ed5b888ea214ff27ec5427920a60de7811d34f5217da31b25dbe50

See more details on using hashes here.

Supported by

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