Skip to content

llm_server_url not working in LLM() #248

@verseon0980

Description

@verseon0980

File:
src/opengradient/agents/og_langchain.py (lines 185–190)
src/opengradient/agents/init.py (line 42)

The code accepts llm_server_url as input and passes it to LLM().

But LLM() does not support this parameter.

OpenGradientChatModel and langchain_adapter take llm_server_url

They send it to LLM()

But LLM() only accepts:
private_key
rpc_url
tee_registry_address

It throws an error

Error: TypeError: init() got an unexpected keyword argument 'llm_server_url'

If a developer tries to use llm_server_url, it will not work.

To use llm_server_url, the code should call:
LLM.from_url(private_key, llm_server_url)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions