Skip to main content

SDK for using LLM

Project description

SFN_LLM_Client

This is an enhanced and improved version with latest llm provider chat completion feature The sfn_llm_client now includes:

  • Updated to the latest version of OpenAI.
  • Integrated Cortex LLM provider support.
  • Latest improvements and updates to the codebase for better performance and compatibility.

Features

  • Supports multiple LLM providers, including OpenAI and Cortex.
  • Easily extensible to include new LLM providers by implementing base client classes.
  • Well-documented and tested.

Adding a New LLM Client

To add a new LLM client, follow these steps:

  1. Implement BaseLLMClient or BaseLLMAPIClient:
    If you're adding a new LLM provider, you'll need to implement either the BaseLLMClient or BaseLLMAPIClient interfaces.

  2. Register in LLMAPIClientFactory:
    If you're adding a client based on BaseLLMAPIClient, don't forget to register it in the LLMAPIClientFactory so that it's available for use.

Adding Dependencies

If your LLM client requires additional dependencies, you can add them to the pyproject.toml file under the appropriate section.

Contributing

Contributions are welcome! If you'd like to help improve this SDK, please check out the todos or open an issue or pull request.

Credits

the core forked functionality taken from llm-client-sdk created by uripeled2.

Contact:

For any queries or issues, please contact the maintainer at: rajesh@stepfunction.ai

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

sfn_llm_client-0.3.3.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

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

sfn_llm_client-0.3.3-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file sfn_llm_client-0.3.3.tar.gz.

File metadata

  • Download URL: sfn_llm_client-0.3.3.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for sfn_llm_client-0.3.3.tar.gz
Algorithm Hash digest
SHA256 2c23076de587bd403c2f7719b40daaea98d63d407fa669d94158eb41525208ec
MD5 9911ea8d22b2e734a03daa938f96f03b
BLAKE2b-256 b39283253dcbd6a7c4e5d44034dadb4d70ad3eff8653ba55cd073264e2aad45d

See more details on using hashes here.

File details

Details for the file sfn_llm_client-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sfn_llm_client-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db3bdc35c1987218f8e00fa7aa17fa66229a58e335c9e96697090cd883ff10f4
MD5 fc10413d9c560ecafe13b53a046c2251
BLAKE2b-256 26880b934badefa8bb6801bd848c61c68efb48818cbcbbbb5ea62782d2b279ea

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