Skip to content

send message fails: unexpected keyword argument 'proxies' #3

Description

@holtzermann17

Having gotten through the setup steps, as per #2 and having added a couple of bots by following the steps from @IngoKl 's intro video, I have created a simple chat room. But, when I enter my messages, nothing comes back. I see this info in the server trace:

Mention detected: peer2 in "Hey @peer2 please introduce yourself."
Internal Server Error: /fdea8709-4f4a-4751-b002-de6c9e4a26d7/send_message/
Traceback (most recent call last):
  File "/home/joe/code/PolyBotConversation/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/code/PolyBotConversation/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/code/PolyBotConversation/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 60, in _view_wrapper
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/code/PolyBotConversation/lib/python3.12/site-packages/django/views/decorators/http.py", line 64, in inner
    return func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/code/PolyBotConversation/chat/views.py", line 108, in send_message
    mention(conversation)
  File "/home/joe/code/PolyBotConversation/chat/triggers.py", line 20, in mention
    generate_message_mention(conversation, message, bot)
  File "/home/joe/code/PolyBotConversation/chat/bot.py", line 89, in generate_message_mention
    bot_response = prompt_llm_messages(messages, model=bot.model, temperature=bot.temperature)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/code/PolyBotConversation/chat/llm.py", line 22, in prompt_llm_messages
    client = openai.OpenAI(
             ^^^^^^^^^^^^^^
  File "/home/joe/code/PolyBotConversation/lib/python3.12/site-packages/openai/_client.py", line 123, in __init__
    super().__init__(
  File "/home/joe/code/PolyBotConversation/lib/python3.12/site-packages/openai/_base_client.py", line 849, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
                                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/code/PolyBotConversation/lib/python3.12/site-packages/openai/_base_client.py", line 747, in __init__
    super().__init__(**kwargs)
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions