feat: move HTML rendering of messages into LettaResponse
and update notebook
#1629
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenAI GPT-4 Capabilities Test | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "Setup Python, Poetry and Dependencies" | |
uses: packetcoders/action-setup-cache-python-poetry@main | |
with: | |
python-version: "3.12" | |
poetry-version: "1.8.2" | |
install-args: "-E dev -E external-tools" | |
- name: Test first message contains expected function call and inner monologue | |
id: test_first_message | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_openai_gpt_4_returns_valid_first_message | |
- name: Test model sends message with keyword | |
id: test_keyword_message | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_openai_gpt_4_returns_keyword | |
- name: Test model uses external tool correctly | |
id: test_external_tool | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_openai_gpt_4_uses_external_tool | |
- name: Test model recalls chat memory | |
id: test_chat_memory | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_openai_gpt_4_recall_chat_memory | |
- name: Test model uses 'archival_memory_search' to find secret | |
id: test_archival_memory_search | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_openai_gpt_4_archival_memory_retrieval | |
- name: Test model uses 'archival_memory_insert' to insert archival memories | |
id: test_archival_memory_insert | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_openai_gpt_4_archival_memory_insert | |
- name: Test model can edit core memories | |
id: test_core_memory | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_openai_gpt_4_edit_core_memory | |
- name: Test embedding endpoint | |
id: test_embedding_endpoint | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
poetry run pytest -s -vv tests/test_endpoints.py::test_embedding_endpoint_openai |