Skip to content

TypeError: BaseLLMProvider.__init__() got an unexpected keyword argument 'system_message' #12

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

Open
richardARPANET opened this issue Apr 12, 2025 · 1 comment

Comments

@richardARPANET
Copy link

richardARPANET commented Apr 12, 2025

import asyncio
from index.agent.agent import Agent
from index.llm.providers.openai import OpenAIProvider
import os
async def main():
    # Initialize the LLM provider
    llm = OpenAIProvider(
        model="gpt-4o",
    )
...

Exception:

(invoicepilot312) (invoicepilot312)amnesia@Richards-MacBook-Pro ~/d/invoicepilot (amazon)> python lam.py
Traceback (most recent call last):
  File "/Users/amnesia/dev/invoicepilot/lam.py", line 28, in <module>
    asyncio.run(main())
  File "/Users/amnesia/pyenv/versions/3.12.7/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Users/amnesia/pyenv/versions/3.12.7/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/amnesia/pyenv/versions/3.12.7/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/amnesia/dev/invoicepilot/lam.py", line 9, in main
    llm = OpenAIProvider(
          ^^^^^^^^^^^^^^^
  File "/Users/amnesia/pyenv/versions/invoicepilot312/lib/python3.12/site-packages/index/llm/providers/openai.py", line 10, in __init__
    super().__init__(model=model, system_message=system_message)
TypeError: BaseLLMProvider.__init__() got an unexpected keyword argument 'system_message'
@richardARPANET
Copy link
Author

Seems the OpenAI provider is broken, went with Anthropic for now.

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