Skip to main content

LangChain integrations for llama-server inference

Project description

langchain-llama-server

This LangChain integration supports llama-server for remote inference over HTTP/S.

Normally you can use ChatOpenAI from langchain-openai for OpenAI compatible APIs. But, anything beyond the OpenAI spec is not supported. Hence why this integration exists.

This package was created to fill in the gaps between the OpenAI spec and extra fields llama-server returns:

  • Access reasoning_content on both streaming and non-streaming chat completions.
  • Capture timings, __verbose and other llama-server specific response fields.
  • Uses BaseChatOpenAI from langchain-openai to implement a chat_model called ChatLlamaServer

Similar to other server integrations:

TODO

  • LlamaServerLLM ?
  • LlamaServerEmbedding ?

What about ChatLlamaCpp?

The langchain_community package provides ChatLlamaCpp? This chat model targets in-process hosting using llama.cpp. It doesn't support llama-server for remote hosting.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_llama_server-0.1.1.tar.gz (129.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_llama_server-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_llama_server-0.1.1.tar.gz.

File metadata

  • Download URL: langchain_llama_server-0.1.1.tar.gz
  • Upload date:
  • Size: 129.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for langchain_llama_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 34707c508d9aaf829d3704bc021fb63fba3aaa90bc0e944514ea79dc87d4343b
MD5 b7e5a3e217623064cfb86bc4f55de4fb
BLAKE2b-256 a89f3ee13972df50fbcdf159e325e3a589d6f4d7d0fe010f2de84dac246b61bb

See more details on using hashes here.

File details

Details for the file langchain_llama_server-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: langchain_llama_server-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for langchain_llama_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35433da829c16333ee64c07f398edbaf73d2080d687031aed56e5e8f3e3e9a8e
MD5 a864e42fa418ea75b0578a0737621ef3
BLAKE2b-256 ea7a990908e62b1fa5d2da883551c2a370f4425d1b4441049f86ab939b7a9c2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page