Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aymenfurter/microagents
Agents Capable of Self-Editing Their Prompts / Python Code
https://github.com/aymenfurter/microagents
gpt-4-turbo llm openai
Last synced: 3 days ago
JSON representation
Agents Capable of Self-Editing Their Prompts / Python Code
- Host: GitHub
- URL: https://github.com/aymenfurter/microagents
- Owner: aymenfurter
- License: mit
- Created: 2023-12-11T08:17:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-15T10:33:38.000Z (8 months ago)
- Last Synced: 2024-08-01T15:33:04.980Z (3 months ago)
- Topics: gpt-4-turbo, llm, openai
- Language: Python
- Homepage:
- Size: 7.64 MB
- Stars: 721
- Watchers: 7
- Forks: 27
- Open Issues: 6
-
Metadata Files:
- Readme: README-Docker.md
- License: LICENSE
Awesome Lists containing this project
- awesome-agents - MicroAgent - Editing Their Prompts / Python Code ![GitHub Repo stars](https://img.shields.io/github/stars/aymenfurter/microagents?style=social) (Software Development)
- awesome-langchain-zh - MicroAgent
- awesome-langchain - MicroAgent - Editing Their Prompts / Python Code ![GitHub Repo stars](https://img.shields.io/github/stars/aymenfurter/microagents?style=social) (Other LLM Frameworks / Videos Playlists)
README
# Docker instructions
## How to build the Docker image
```bash
docker build -t microagents:latest .
```## How to run the Docker container
1. Create the persistance directory
```bash
mkdir -p persistance
# optionally copy agents.db to persistance
cp agents.db persistance/
```
1. Run the Docker container
- In case you want to use Open AI API:
```sh
docker run -it --rm \
-e OPENAI_KEY='your_api_key_here' \
-v "$(pwd)/persistance:/usr/src/app/persistance" \
-p "7860:7860" \
microagents:latest
```
- In case you want to use Azure Open AI with api key:
```sh
docker run -it --rm \
-e AZURE_OPENAI_API_KEY='your_api_key_here' \
-e AZURE_OPENAI_ENDPOINT='https://my_endpoint_name_here.openai.azure.com/' \
-e OPENAI_EMBEDDING='text-embedding-ada-002' \
-e OPENAI_MODEL='gpt-4-1106-preview' \
-v "$(pwd)/persistance:/usr/src/app/persistance" \
-p "7860:7860" \
microagents:latest
```
- In case you want to use Azure Open AI with Entra ID (AAD):
```sh
docker run -it --rm \
-e AZURE_OPENAI_USE_AAD='true' \
-e AZURE_OPENAI_AD_TOKEN="$(az account get-access-token --scope "https://cognitiveservices.azure.com/.default" --query 'accessToken' -o tsv)" \
-e AZURE_OPENAI_ENDPOINT='https://my_endpoint_name_here.openai.azure.com/' \
-e OPENAI_EMBEDDING='text-embedding-ada-002' \
-e OPENAI_MODEL='gpt-4-1106-preview' \
-v "$(pwd)/persistance:/usr/src/app/persistance" \
-p "7860:7860" \
microagents:latest
```