Skip to main content

Langchain-provider

Project Info

Project License Join the chat at https://gitter.im/spyder-ide/public OpenCollective Backers OpenCollective Sponsors


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

langchain provider demo

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:

langchain provider config

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

QuansightNumfocus

and the donations we have received from our users around the world through Open Collective:

Sponsors

More information

Main Website

Download Spyder (with Anaconda)

Online Documentation

Spyder Github

Troubleshooting Guide and FAQ

Development Wiki

Gitter Chatroom

Google Group

@Spyder_IDE on Twitter

@SpyderIDE on Facebook

Support Spyder on OpenCollective

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)

Source distribution for langchain-provider 0.2.0
File Size Uploaded
langchain_provider-0.2.0.tar.gz 1.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-provider 0.2.0
File Interpreter ABI Platform
langchain_provider-0.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release 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