Problem 1:
It looks like this openmacro has a bug: I keep getting this "AttributeError: module 'openmacro.extensions' has no attribute 'LLM'" even though I:
- tried several times,
- included the "LLM" property,
- tried in multiple projects
However, sometimes the profile gets created, and will still give the same "LLM" error when I try "py -m openmacro --api_key "my_api_key" --profile "my\profile\path""
The full error is::
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\damil\PycharmProjects\open_macro\.venv\Scripts\macro.exe\__main__.py", line 7, in <module> File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\__main__.py", line 143, in main macro = Openmacro(profile) ^^^^^^^^^^^^^^^^^^ File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\core\__init__.py", line 84, in __init__ "extensions": extensions or self.computer.load_instructions() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\computer\__init__.py", line 28, in load_instructions return "\n\n".join( ^^^^^^^^^^^^ File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\computer\__init__.py", line 29, in <genexpr> getattr(extensions, extension).load_instructions() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'openmacro.extensions' has no attribute 'LLM'
Problem 2:
Also anytime I try testing the code using the below code I get "Another profile with the same name and version already exists. Override profile? (y/n) (why does it always ask me to override??)" ::::
The code:::
`
async def main():
from openmacro.core import Openmacro
# Initialize Openmacro with the new profile
macro = Openmacro()
macro.llm.messages = []
# Perform chat and stream the output
# async for chunk in macro.chat("Plot an exponential graph for me!", stream=True):
async for chunk in macro.chat("Explain Openmarco", stream=True):
print(chunk, end="")
import asyncio
asyncio.run(main())
`
Problem 1:
It looks like this openmacro has a bug: I keep getting this "AttributeError: module 'openmacro.extensions' has no attribute 'LLM'" even though I:
However, sometimes the profile gets created, and will still give the same "LLM" error when I try "py -m openmacro --api_key "my_api_key" --profile "my\profile\path""
The full error is::
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\damil\PycharmProjects\open_macro\.venv\Scripts\macro.exe\__main__.py", line 7, in <module> File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\__main__.py", line 143, in main macro = Openmacro(profile) ^^^^^^^^^^^^^^^^^^ File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\core\__init__.py", line 84, in __init__ "extensions": extensions or self.computer.load_instructions() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\computer\__init__.py", line 28, in load_instructions return "\n\n".join( ^^^^^^^^^^^^ File "C:\Users\damil\PycharmProjects\open_macro\.venv\Lib\site-packages\openmacro\computer\__init__.py", line 29, in <genexpr> getattr(extensions, extension).load_instructions() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'openmacro.extensions' has no attribute 'LLM'Problem 2:
Also anytime I try testing the code using the below code I get "Another profile with the same name and version already exists. Override profile? (y/n) (why does it always ask me to override??)" ::::
The code:::
`
async def main():
from openmacro.core import Openmacro
# Initialize Openmacro with the new profile
macro = Openmacro()
macro.llm.messages = []
# Perform chat and stream the output
# async for chunk in macro.chat("Plot an exponential graph for me!", stream=True):
async for chunk in macro.chat("Explain Openmarco", stream=True):
print(chunk, end="")
import asyncio
asyncio.run(main())
`