You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/wangxiao/www/AI-Search/storm-main/examples/storm_examples/run_storm_wiki_gpt.py", line 148, in
main(parser.parse_args())
File "/Users/wangxiao/www/AI-Search/storm-main/examples/storm_examples/run_storm_wiki_gpt.py", line 103, in main
runner.run(
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/engine.py", line 395, in run
information_table = self.run_knowledge_curation_module(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/interface.py", line 499, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/engine.py", line 220, in run_knowledge_curation_module
self.storm_knowledge_curation_module.research(
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/knowledge_curation.py", line 372, in research
considered_personas = self._get_considered_personas(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/knowledge_curation.py", line 282, in _get_considered_personas
return self.persona_generator.generate_persona(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/persona_generator.py", line 151, in generate_persona
personas = self.create_writer_with_persona(topic=topic)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/primitives/program.py", line 23, in call
return self.forward(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/persona_generator.py", line 80, in forward
related_topics = self.find_related_topic(topic=topic).related_topics
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/primitives/program.py", line 23, in call
return self.forward(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/chain_of_thought.py", line 44, in forward
return self._predict(signature=signature, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 154, in call
return self.forward(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 203, in forward
completions = old_generate(demos, signature, kwargs, config, self.lm, self.stage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 229, in old_generate
x, C = dsp.generate(template, **config)(x, stage=stage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/primitives/predict.py", line 73, in do_generate
completions: list[dict[str, Any]] = generator(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/lm.py", line 77, in call
response = self.request(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 166, in request
return self.basic_request(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 138, in basic_request
response = chat_request(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 292, in chat_request
return v1_cached_gpt3_turbo_request_v2_wrapped(**kwargs).model_dump()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'model_dump'
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/Users/wangxiao/www/AI-Search/storm-main/examples/storm_examples/run_storm_wiki_gpt.py", line 148, in
main(parser.parse_args())
File "/Users/wangxiao/www/AI-Search/storm-main/examples/storm_examples/run_storm_wiki_gpt.py", line 103, in main
runner.run(
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/engine.py", line 395, in run
information_table = self.run_knowledge_curation_module(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/interface.py", line 499, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/engine.py", line 220, in run_knowledge_curation_module
self.storm_knowledge_curation_module.research(
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/knowledge_curation.py", line 372, in research
considered_personas = self._get_considered_personas(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/knowledge_curation.py", line 282, in _get_considered_personas
return self.persona_generator.generate_persona(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/persona_generator.py", line 151, in generate_persona
personas = self.create_writer_with_persona(topic=topic)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/primitives/program.py", line 23, in call
return self.forward(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/persona_generator.py", line 80, in forward
related_topics = self.find_related_topic(topic=topic).related_topics
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/primitives/program.py", line 23, in call
return self.forward(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/chain_of_thought.py", line 44, in forward
return self._predict(signature=signature, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 154, in call
return self.forward(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 203, in forward
completions = old_generate(demos, signature, kwargs, config, self.lm, self.stage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 229, in old_generate
x, C = dsp.generate(template, **config)(x, stage=stage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/primitives/predict.py", line 73, in do_generate
completions: list[dict[str, Any]] = generator(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/lm.py", line 77, in call
response = self.request(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 166, in request
return self.basic_request(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 138, in basic_request
response = chat_request(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 292, in chat_request
return v1_cached_gpt3_turbo_request_v2_wrapped(**kwargs).model_dump()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'model_dump'
The text was updated successfully, but these errors were encountered: