Skip to main content

LLM adapter utilities for ACACE

Project description

ACACE LLM Adapter

A Language Model adapter module for the Adaptive Context-Aware Content Engine (ACACE).

Features

  • OpenAI API integration
  • Anthropic API integration
  • Unified interface for multiple LLM providers
  • Error handling and retries

Installation

pip install acace_llm_adapter

Usage

from acace_llm_adapter import LLMAdapter

# Initialize with your API keys
adapter = LLMAdapter(
    openai_api_key="your-openai-key",
    anthropic_api_key="your-anthropic-key"
)

# Generate content using OpenAI
response = adapter.generate(
    "Write a short story about a robot learning to paint.",
    provider="openai",
    model="gpt-4"
)

# Generate content using Anthropic
response = adapter.generate(
    "Write a short story about a robot learning to paint.",
    provider="anthropic",
    model="claude-3-opus-20240229"
)

License

MIT License

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

acace_llm_adapter-0.1.0.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

acace_llm_adapter-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file acace_llm_adapter-0.1.0.tar.gz.

File metadata

  • Download URL: acace_llm_adapter-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.6 Darwin/24.3.0

File hashes

Hashes for acace_llm_adapter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bb3adb6acb9a861a5f5eb3d161a804b10d0b8edb421ca2413841a712de1cfb73
MD5 2a43df8c3479731e878b304d228d204b
BLAKE2b-256 f9912d31aab9ba83c587ccebf0c98bffb8f45ace69ffd72d49fd0fb915579ca3

See more details on using hashes here.

File details

Details for the file acace_llm_adapter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: acace_llm_adapter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.6 Darwin/24.3.0

File hashes

Hashes for acace_llm_adapter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77b266613ef71c7574dbe6f3c86652201406259dd9aa9e6b1f0cec01c31a518e
MD5 1cece5903b1ee186ae06f2bb92f747c1
BLAKE2b-256 a649d69e7a03892158e091323f5d4d49f2376e79d955c55fee271ad7027c78e5

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