Langchain-provider
Project Info
Overview
Installation
To use this completions provider you will need to install Spyder 6 (at least 6.1.0)
To install the provider package from source, you can use pip with something like:
pip install git+https://github.com/spyder-ide/langchain-provider.git
Or from PyPI something like:
pip install langchain-provider
Also, you need to set the environment variable OPENAI_API_KEY. In case
you are actually using the OpenAI API you can get it from here
but for usage with, for example, local LLMs (via things like LMStudio)
you will need to set it with a corresponding valid value.
Depending on the API you are using and options to configure available, defining the following JSON schema for the model structured output could be useful:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Generated schema for responses",
"type": "object",
"properties": {
"suggestions": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"suggestions"
]
}
Preview
Configuration
To configure the provider number of suggestions (1 - 10), the model to use and API URL you can click on the Langchain status bar and then the Change provider parameters menu entry:
Dependencies
This project depends on Spyder.
Changelog
Visit our CHANGELOG file to know more about our new features and improvements.
Development and contribution
Everyone is welcome to contribute! See our Contributing guide for more details.
Sponsors
Spyder is funded thanks to the generous support of
and the donations we have received from our users around the world through Open Collective:
More information
Metadata
Release files for langchain-provider 0.2.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_provider-0.2.0.tar.gz | 1.9 MB | Without provenance | Details for langchain_provider-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_provider-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_provider-0.2.0-py3-none-any.whl |
Total release size: 1.9 MB
Release files / langchain_provider-0.2.0.tar.gz
| Download URL | langchain_provider-0.2.0.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0da29b4d0ba0cea5f68fdeac76359a6ad2dd75d1ab5f9363ebb231cdb8a772e0
|
|
BLAKE2b-256 checksum How to use checksums |
c12b581895bd5a460fe5ef9758c88966dddbdd8db40ed22d51db340fd5280f98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.20
|
Release files / langchain_provider-0.2.0-py3-none-any.whl
| Download URL | langchain_provider-0.2.0-py3-none-any.whl |
|---|---|
| Size | 55.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23797bf77ee9ed71ffc355a7e31b7adce215150f894c3b827bc891854c410494
|
|
BLAKE2b-256 checksum How to use checksums |
5490075c40fc97429ce6b9210ba7846fdc8d39824761a45cda9287e822f52f49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.20
|
Security for langchain-provider 0.2.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.