Skip to main content

Cloud Security Alliance AI Foundation Model API Clients

Project description

Cloud Security Alliance AI Foundation Model API Clients

This Python library (csa_ai_foundation_model_api_clients) provides API access to text completions for:

  • Anthropic Claude 3
  • Google Gemini 1.5
  • OpenAI ChatGPT 4

and has plans to add:

  • OpenAI ChatGPT 4 batch mode

You can set the following options:

  • system prompt (aka developer prompt, persona)
  • user prompt (aka instructions)
  • user data (as part of the user prompt)
  • temperature
  • max_tokens

and has plans to add:

  • top_p
  • top_k
  • model specific paramaters

Please note this code does not have tests, or good error handling, but it works. Also with respect to handling rate limiting that is on the todo, but currently if you use this tool put a sleep statement to slow it down.

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

csa_ai_foundation_model_api_clients-0.0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file csa_ai_foundation_model_api_clients-0.0.1.tar.gz.

File metadata

File hashes

Hashes for csa_ai_foundation_model_api_clients-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d1f2a54dc76f395446bf8f9420a6b9492e1b42fde658a25351811f078c065f79
MD5 ce61688af53db7f349e56b4e267c9c9a
BLAKE2b-256 61ff25300f33738843ccd52a1719abcfc55a7e4443b07d64ac2614a2514b9654

See more details on using hashes here.

File details

Details for the file csa_ai_foundation_model_api_clients-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for csa_ai_foundation_model_api_clients-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99ad4594f14c9aadf9579567b6e544ea15b3dc54f1e2a73ccaf1918eeefee603
MD5 9cbfdd6a2ce26dcd15fd50b23318af00
BLAKE2b-256 f3ae9b89d057256d1d55dd0975741acdd2efac49329613bfb2e4d83e7a2511e3

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