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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
048faa8d98f97fb472ef93b730c5751b01eb8f3465c34e43f09365b6d58b30df
|
|
| MD5 |
6125d3301e049834738cebc7fcbb4bf1
|
|
| BLAKE2b-256 |
021a3d108629a945bddb56a7f5b7c95276528023039f5dbbebb09500273a6ecb
|
File details
Details for the file langchain_digitalocean-0.1.8-py3-none-any.whl.
File metadata
- Download URL: langchain_digitalocean-0.1.8-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70c59698ee3e91238f853076f3572c3719e14a571d3f3a3fcad7b7e7ba3033e0
|
|
| MD5 |
297d69b9451618b3bf50e5b258337327
|
|
| BLAKE2b-256 |
7990f4d83d38644c33e12ff061b5c6c74cb825ea7fda40242354ccd85b590b11
|