Skip to main content

An integration package connecting Digitalocean and LangChain

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

langchain-digitalocean

This package contains the LangChain integration with Digitalocean

Installation

pip install -U langchain-digitalocean

And you should configure credentials by setting the following environment variables:

export DIGITALOCEAN_MODEL_ACCESS_KEY=<DigitalOcean_Model_Access_Key>

Chat Models

ChatDigitalocean class exposes chat models from langchain-digitalocean.

Invoke

from langchain_digitalocean import ChatDigitalocean

llm = ChatDigitalocean(
    model="llama3.3-70b-instruct",
    api_key=os.getenv("DIGITALOCEAN_MODEL_ACCESS_KEY")
)

result = llm.invoke("What is the capital of France?.")
print(result)

Stream

from langchain_digitalocean import ChatDigitalocean

llm = ChatDigitalocean(
    model="llama3.3-70b-instruct",
    api_key=os.getenv("DIGITALOCEAN_MODEL_ACCESS_KEY")
)

for chunk in llm.stream("Tell me what happened to the Dinosaurs?"):
    print(chunk.content, end="", flush=True)

More features coming soon.

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

langchain_digitalocean-0.1.8.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

langchain_digitalocean-0.1.8-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_digitalocean-0.1.8.tar.gz.

File metadata

  • Download URL: langchain_digitalocean-0.1.8.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0

File hashes

Hashes for langchain_digitalocean-0.1.8.tar.gz
Algorithm Hash digest
SHA256 048faa8d98f97fb472ef93b730c5751b01eb8f3465c34e43f09365b6d58b30df
MD5 6125d3301e049834738cebc7fcbb4bf1
BLAKE2b-256 021a3d108629a945bddb56a7f5b7c95276528023039f5dbbebb09500273a6ecb

See more details on using hashes here.

File details

Details for the file langchain_digitalocean-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_digitalocean-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 70c59698ee3e91238f853076f3572c3719e14a571d3f3a3fcad7b7e7ba3033e0
MD5 297d69b9451618b3bf50e5b258337327
BLAKE2b-256 7990f4d83d38644c33e12ff061b5c6c74cb825ea7fda40242354ccd85b590b11

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