Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poetry run pytest -> FAILED tests/memory/long_term_memory_test.py #487

Open
dkhokhlov opened this issue Apr 21, 2024 · 0 comments
Open

poetry run pytest -> FAILED tests/memory/long_term_memory_test.py #487

dkhokhlov opened this issue Apr 21, 2024 · 0 comments

Comments

@dkhokhlov
Copy link
Contributor

dkhokhlov commented Apr 21, 2024

on main at:
commit 3d52575 (HEAD -> main, origin/main, origin/HEAD)
Author: Braelyn Boynton bboynton97@gmail.com
Date: Sat Apr 20 08:20:13 2024 -0700

$ ollama pull llama3:8b-instruct-q4_0

$ cat .env
MODEL_NAME="llama3:8b-instruct-q4_0"
OPENAI_API_BASE_URL="http://localhost:11434/v1"
OPENAI_API_KEY=local

$ poetry lock --no-update
$ poetry run pytest
...
===================================================================================== short test summary info ======================================================================================
FAILED tests/crew_test.py::test_manager_agent - pydantic_core._pydantic_core.ValidationError: 1 validation error for Crew
FAILED tests/memory/long_term_memory_test.py::test_save_and_search - TypeError: LongTermMemory.search() missing 1 required positional argument: 'latest_n'
FAILED tests/memory/short_term_memory_test.py::test_save_and_search - openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: local. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'i...
========================================================================== 3 failed, 82 passed, 16545 warnings in 34.03s ===========================================================================
@dkhokhlov dkhokhlov changed the title poetry run pytest with ollama? poetry run pytest -> FAILED tests/memory/long_term_memory_test.py Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant