MIRIX icon indicating copy to clipboard operation
MIRIX copied to clipboard

调用

Open Jacky-Yang123 opened this issue 11 months ago • 2 comments

File "K:\123yeah\Joy\mirix_test.py", line 3, in client = MirixClient( ^^^^^^^^^^^^ TypeError: MirixClient.init() got an unexpected keyword argument 'base_url' 这是我的代码,希望通过lm studio来调用,但是他似乎不支持 'base_url'这个参数: from mirix import MirixClient

client = MirixClient( api_key="hfMRjGu6D0yjfDyzueCZnZd63v2hE5y6QX5xyzL8jPQ", # or use MIRIX_API_KEY env var base_url="http://localhost:8531", )

client.initialize_meta_agent( config={ "llm_config": { "model": "qwen/qwen3-vl-4b", "model_endpoint_type": "openai", "model_endpoint": "http://127.0.0.1:1234", "context_window": 128000, }, "build_embeddings_for_memory": True, "embedding_config": { "embedding_model": "text-embedding-qwen3-embedding-0.6b", "embedding_endpoint": "http://127.0.0.1:1234", "embedding_endpoint_type": "openai", "embedding_dim": 1536, }, "meta_agent_config": { "agents": [ "core_memory_agent", "resource_memory_agent", "semantic_memory_agent", "episodic_memory_agent", "procedural_memory_agent", "knowledge_memory_agent", "reflexion_agent", "background_agent", ], "memory": { "core": [ {"label": "human", "value": ""}, {"label": "persona", "value": "I am a helpful assistant."}, ], "decay": { "fade_after_days": 30, "expire_after_days": 90, }, }, }, } )

Jacky-Yang123 avatar Dec 29 '25 14:12 Jacky-Yang123

Are you using the pypi package mirix==0.1.6? The pypi package only supports the cloud version, if you want to use your local version, you can run the same code under the root folder of this project. Meanwhile you may need to run pip uninstall mirix so that it would be forced to use the local code. Please let me know if you continue to experience issues.

wangyu-ustc avatar Dec 29 '25 16:12 wangyu-ustc

Oh yes I just found that problem, thank you.

Jacky-Yang123 avatar Dec 30 '25 01:12 Jacky-Yang123