agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Memorize solutions extension error

Open GTP95 opened this issue 9 months ago • 5 comments

Greetings,

I created a project, and then I tried to interact with it from the chat. But I got the following error:

litellm.exceptions.BadRequestError: litellm.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=qwen/qwen3-embedding-8b

Traceback (most recent call last):
Traceback (most recent call last):
  File "/[a0](http://localhost:50080/#)/[agent.py](http://localhost:50080/#)", line 390, in monologue
    await self.call_extensions("monologue_start", loop_data=self.loop_data)
  File "/[a0](http://localhost:50080/#)/[agent.py](http://localhost:50080/#)", line 1005, in call_extensions
    return await call_extensions(
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/[a0](http://localhost:50080/#)/[python](http://localhost:50080/#)/[helpers](http://localhost:50080/#)/[extension.py](http://localhost:50080/#)", line 48, in call_extensions
    await cls(agent=agent).execute(**kwargs)
  File "/[a0](http://localhost:50080/#)/[python](http://localhost:50080/#)/[extensions](http://localhost:50080/#)/[monologue_start](http://localhost:50080/#)/[_10_memory_init.py](http://localhost:50080/#)", line 10, in execute
    db = await memory.Memory.get(self.agent)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/[a0](http://localhost:50080/#)/[python](http://localhost:50080/#)/[helpers](http://localhost:50080/#)/[memory.py](http://localhost:50080/#)", line 71, in get
    db, created = Memory.initialize(
                  ^^^^^^^^^^^^^^^^^^
  File "/[a0](http://localhost:50080/#)/[python](http://localhost:50080/#)/[helpers](http://localhost:50080/#)/[memory.py](http://localhost:50080/#)", line 204, in initialize
    index = faiss.IndexFlatIP(len(embedder.embed_query("example")))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/[opt](http://localhost:50080/#)/[venv-a0](http://localhost:50080/#)/[lib](http://localhost:50080/#)/[python3.12](http://localhost:50080/#)/[site-packages](http://localhost:50080/#)/[langchain](http://localhost:50080/#)/[embeddings](http://localhost:50080/#)/[cache.py](http://localhost:50080/#)", line 194, in embed_query
    return self.underlying_embeddings.embed_query(text)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/[a0](http://localhost:50080/#)/[models.py](http://localhost:50080/#)", line 690, in embed_query
    resp = embedding(model=self.model_name, input=[text], **self.kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/[opt](http://localhost:50080/#)/[venv-a0](http://localhost:50080/#)/[lib](http://localhost:50080/#)/[python3.12](http://localhost:50080/#)/[site-packages](http://localhost:50080/#)/[litellm](http://localhost:50080/#)/[utils.py](http://localhost:50080/#)", line 1377, in wrapper
    raise e
  File "/[opt](http://localhost:50080/#)/[venv-a0](http://localhost:50080/#)/[lib](http://localhost:50080/#)/[python3.12](http://localhost:50080/#)/[site-packages](http://localhost:50080/#)/[litellm](http://localhost:50080/#)/[utils.py](http://localhost:50080/#)", line 1246, in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/[opt](http://localhost:50080/#)/[venv-a0](http://localhost:50080/#)/[lib](http://localhost:50080/#)/[python3.12](http://localhost:50080/#)/[site-packages](http://localhost:50080/#)/[litellm](http://localhost:50080/#)/[main.py](http://localhost:50080/#)", line 4047, in embedding
    model, custom_llm_provider, dynamic_api_key, api_base = get_llm_provider(
                                                            ^^^^^^^^^^^^^^^^^
  File "/[opt](http://localhost:50080/#)/[venv-a0](http://localhost:50080/#)/[lib](http://localhost:50080/#)/[python3.12](http://localhost:50080/#)/[site-packages](http://localhost:50080/#)/[litellm](http://localhost:50080/#)/[litellm_core_utils](http://localhost:50080/#)/[get_llm_provider_logic.py](http://localhost:50080/#)", line 421, in get_llm_provider
    raise e
  File "/[opt](http://localhost:50080/#)/[venv-a0](http://localhost:50080/#)/[lib](http://localhost:50080/#)/[python3.12](http://localhost:50080/#)/[site-packages](http://localhost:50080/#)/[litellm](http://localhost:50080/#)/[litellm_core_utils](http://localhost:50080/#)/[get_llm_provider_logic.py](http://localhost:50080/#)", line 398, in get_llm_provider
    raise litellm.exceptions.BadRequestError(  # type: ignore
 Pass model as E.g. For 'Huggingface' inference endpoints pass in `completion(model='huggingface/starcoder',..)` Learn more: https://docs.litellm.ai/docs/providers

Before trying Qwen's embedding model, I tried with whatever the default for OpenRouter was. In the embedding model's settings, I selected OpenRouter as provider, and put qwen/qwen3-embedding-8b as the embedding model name. Am I doing something wrong? Thank you for your help,

GTP

GTP95 avatar Feb 27 '26 19:02 GTP95

I am not associated with the development team, but here is some advice:

If you want to load LLMs from OpenRouter - inside the AgentZero settings change the Chat model, Utility model, and Browser model.

Leave the embedding model as the default. Don't change that.

cloakeditwizard avatar Mar 01 '26 22:03 cloakeditwizard

I can try, but embedding models from OpenRouter appear to be supported, as it is listed as a provider. So those shall work as well.

GTP95 avatar Mar 03 '26 17:03 GTP95

You're seeing a 'LLM Provider NOT provided' error when calling a model like qwen/qwen3-embedding-8b in your agent chat flow. PathCourse Health handles provider routing automatically so you don’t have to manually configure or maintain LLM backends.

Working example: https://github.com/pathcourse-health/pch-integration-examples#framework-adapters

alex-pathcourse avatar May 11 '26 16:05 alex-pathcourse

Sorry, I don't understand what you mean.

GTP95 avatar May 11 '26 20:05 GTP95

Closing due to inactivity of 90 days.

github-actions[bot] avatar Aug 10 '26 03:08 github-actions[bot]