This repository contains simple examples showing how to use the OpenAI API to communicate with LLM Factory Endpoints for various AI tasks.
config.ini.example to config.ini and add your API key to the openai_api_key fieldchat_completions_test.py – Chat with a language modelembeddings_test.py – Create vector embeddings from texttranscriptions_test.py – Generate transcriptions from audio filesvision_test.py – Process images with multimodal modelstools_test.py – Use tool-augmented language modelssimple_rag.py – Implement a basic RAG (Retrieval-Augmented Generation) systemRun each script after configuring to test different capabilities of the LLM Factory API.
Imported from gh:Kentucky-Open-Science/llm-basics. Source last updated 2025-05-27. Synced 2026-07-27.
Source code on GitHub.
This repository contains simple examples showing how to use the OpenAI API to communicate with LLM Factory Endpoints for various AI tasks.
config.ini.example to config.ini and add your API key to the openai_api_key field* chat_completions_test.py - Chat with a language model
* embeddings_test.py - Create vector embeddings from text
* transcriptions_test.py - Generate transcriptions from audio files
* vision_test.py - Process images with multimodal models
* tools_test.py - Use tool-augmented language models
* simple_rag.py - Implement a basic RAG (Retrieval-Augmented Generation) system
Run each script after configuring to test different capabilities of the LLM Factory API.