Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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.

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.

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page