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.
Metadata
Release files for langchain-digitalocean 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| langchain_digitalocean-0.1.8.tar.gz | 14.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_digitalocean-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.1 kB
Release files / langchain_digitalocean-0.1.8.tar.gz
| Download URL | langchain_digitalocean-0.1.8.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
048faa8d98f97fb472ef93b730c5751b01eb8f3465c34e43f09365b6d58b30df
|
|
BLAKE2b-256 checksum How to use checksums |
021a3d108629a945bddb56a7f5b7c95276528023039f5dbbebb09500273a6ecb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0
|
Release files / langchain_digitalocean-0.1.8-py3-none-any.whl
| Download URL | langchain_digitalocean-0.1.8-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70c59698ee3e91238f853076f3572c3719e14a571d3f3a3fcad7b7e7ba3033e0
|
|
BLAKE2b-256 checksum How to use checksums |
7990f4d83d38644c33e12ff061b5c6c74cb825ea7fda40242354ccd85b590b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0
|
Security for langchain-digitalocean 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.