Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There seems to be some issue with chainlit/message.py #3

Open
nitish2507 opened this issue Jan 18, 2024 · 1 comment
Open

There seems to be some issue with chainlit/message.py #3

nitish2507 opened this issue Jan 18, 2024 · 1 comment

Comments

@nitish2507
Copy link

2024-01-18 16:06:42 - Template count: 2
2024-01-18 16:06:42 - 'str' object has no attribute 'to_dict'
Traceback (most recent call last):
File "/Users/nitish/Library/Caches/pypoetry/virtualenvs/hr-job-cv-matcher-JiiZFaw_-py3.11/lib/python3.11/site-packages/chainlit/utils.py", line 40, in wrapper
return await user_function(**params_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 64, in init
await start_process_applications_and_cvs(application_docs, cv_docs)
File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 451, in start_process_applications_and_cvs
await process_with_settings(settings)
File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 89, in process_with_settings
] = await process_applications_and_cvs(application_docs, cvs_docs, score_weights)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 140, in process_applications_and_cvs
] = await process_job_description_and_candidates(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 192, in process_job_description_and_candidates
, skill_results = await process_skills_llm_chain(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 305, in process_skills_llm_chain
return await process_generic_extraction(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nitish/Downloads/developments/hr_job_cv_matcher/./hr_job_cv_matcher/ui/matcher_chainlit.py", line 288, in process_generic_extraction
await results_msg.stream_token(
File "/Users/nitish/Library/Caches/pypoetry/virtualenvs/hr-job-cv-matcher-JiiZFaw
-py3.11/lib/python3.11/site-packages/chainlit/message.py", line 109, in stream_token
msg_dict = self.to_dict()
^^^^^^^^^^^^^^
File "/Users/nitish/Library/Caches/pypoetry/virtualenvs/hr-job-cv-matcher-JiiZFaw_-py3.11/lib/python3.11/site-packages/chainlit/message.py", line 202, in to_dict
_dict["prompt"] = self.prompt.to_dict()
^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'to_dict'

@kneuskens
Copy link

I also have this issue. is there a solution for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants