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

IndexError: list index out of range #372

Open
CeyssensHelder opened this issue Apr 5, 2024 · 2 comments · May be fixed by #667
Open

IndexError: list index out of range #372

CeyssensHelder opened this issue Apr 5, 2024 · 2 comments · May be fixed by #667

Comments

@CeyssensHelder
Copy link

CeyssensHelder commented Apr 5, 2024

Describe the bug
Getting "IndexError: list index out of range"
in "devika\src\agents\feature\feature.py"
on line "response = response.split("~~~", 1)[1]"

To Reproduce
Steps to reproduce the behavior:
I asked to finish a index.html for a onepager, not sure if this will be reproduced on every onepager.
Background: it first made just a list with tasks, I asked to complete the tasks by itself and create the index.html.

Expected behavior
Not give an error and finish the code.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Win11
  • Search Engine: DuckDuckGo
  • Model: Mistral using Ollama

Additional context
This keeps happening in this project when I ask something around finishing the code.

@Ahmet0691
Copy link
Contributor

mistral llm is asked to send the code in ~~~~ sign. However, if mistral is not trained with such a character, it sends the code without these signs. This is why this error is returned. If there is another way to separate code and text, it can be solved by trying

@Ahmet0691
Copy link
Contributor

A new format and code block specific to programming language models should be added, it is not right to integrate them in this way

erkinalp added a commit to erkinalp/devika that referenced this issue Dec 18, 2024
- Add numpy>=1.24.0 to requirements.txt
- Create setup.py with core dependencies
- Add environment validation in init_devika
- Update installation documentation
- Add tests for numpy validation

Fixes stitionai#372

Co-Authored-By: Erkin Alp Güney <[email protected]>
@erkinalp erkinalp linked a pull request Dec 18, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants