Skip to main content

Common utilities for OpenRelik AI functionality

Project description

Common utilities for OpenRelik AI functionality.

# LLM providers are configured via environment variables
# export OLLAMA_SERVER_URL=http://localhost:11434
# export OLLAMA_DEFAULT_MODEL=gemma2:9b

from openrelik_ai_common.providers import manager

llm = manager.LLMManager().get_provider("ollama")()
response = llm.generate(prompt="Hello")
print(response)
Obligatory Fine Print

This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.

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

openrelik_ai_common-2024.10.21.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

openrelik_ai_common-2024.10.21-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file openrelik_ai_common-2024.10.21.tar.gz.

File metadata

  • Download URL: openrelik_ai_common-2024.10.21.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.3 Darwin/24.0.0

File hashes

Hashes for openrelik_ai_common-2024.10.21.tar.gz
Algorithm Hash digest
SHA256 72c80914facb1cd25b6e502d3b0ffa8f3556a3c424ba16223c25b4ad28e7fda6
MD5 32f0292d83c81a1aea31a85139caafe6
BLAKE2b-256 68d788436598dd1d631c09974a77724dcf8bfeb9eae10a2fb6bed5fbfd62761b

See more details on using hashes here.

File details

Details for the file openrelik_ai_common-2024.10.21-py3-none-any.whl.

File metadata

File hashes

Hashes for openrelik_ai_common-2024.10.21-py3-none-any.whl
Algorithm Hash digest
SHA256 6236bd585f9aeff2bc03bf913ef34115ef23348cbf8af38938cdd22f3f0ed820
MD5 422f1f6691a94f340c8c2d883bda0dc5
BLAKE2b-256 7e83e1d15f6bc946d940c0b07d2b862bdb8545f70a9ac92ef4844d017f2f6a44

See more details on using hashes here.

Supported by

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