langchain-straitly
LangChain chat model for Straitly.
Straitly is an AI gateway for startups: one OpenAI-compatible API key for 150+ models including Claude, GPT, Gemini, Grok and DeepSeek.
Install
pip install -U langchain-straitly
export STRAITLY_API_KEY="your-api-key"
Use
from langchain_straitly import ChatStraitly
model = ChatStraitly(model="deepseek/deepseek-v4-1-flash", temperature=0)
print(model.invoke("Say hello in one sentence.").content)
for chunk in model.stream("Write one line about rain."):
print(chunk.text, end="")
Pick any model id from https://straitly.ai/models (JSON: https://straitly.ai/api/catalog). Tool calling and
structured output use the same methods as ChatOpenAI (bind_tools, with_structured_output); support depends on
the model.
| Setting | Env var | Default |
|---|---|---|
| API key | STRAITLY_API_KEY |
none, required |
| Base URL | STRAITLY_API_BASE |
https://api.straitly.ai/v1 |
OPENAI_API_KEY is never read, so an OpenAI key is never sent to Straitly.
Docs: https://straitly.ai/docs/quickstart. Contact: https://straitly.ai/contact.
Metadata
Release files for langchain-straitly 0.1.0
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 | Actions |
|---|---|---|---|---|
| langchain_straitly-0.1.0.tar.gz | 4.8 kB | Without provenance | Details for langchain_straitly-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_straitly-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_straitly-0.1.0-py3-none-any.whl |
Total release size: 10.0 kB
Release files / langchain_straitly-0.1.0.tar.gz
| Download URL | langchain_straitly-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35721e0aefcc5c4e184e0509b9afdb0640256d60ba8d8460d9cbf0fbb581e0c1
|
|
BLAKE2b-256 checksum How to use checksums |
3099f5ee2271fa371e9aa727554bff49ae13d59745b827f5b948aa15137e2d8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / langchain_straitly-0.1.0-py3-none-any.whl
| Download URL | langchain_straitly-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea28a7c6da2f567ad06cd896eb1d8af0c684f5c32394a6cedac1be7a14d67660
|
|
BLAKE2b-256 checksum How to use checksums |
cfe652b84227618956988a2772d15ca7aac7fd0e85fc15b0bcb9579cff05387f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for langchain-straitly 0.1.0
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.