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

[Bug] backticks in file names #631

Open
zenitogr opened this issue Jul 30, 2024 · 2 comments
Open

[Bug] backticks in file names #631

zenitogr opened this issue Jul 30, 2024 · 2 comments

Comments

@zenitogr
Copy link

Describe the bug

instead of running commands it creates a txt file that start and end in backticks with the commands in the file

it also creates other files with backtickes before and after in the filename

How To Reproduce

Steps to reproduce the behavior (example):

  1. setup devika to run normally
  2. create new devika project
  3. select llama3.1-8b from ollama
  4. send first message: lets create a nextjs project named trolo
  5. result
    image
    image

Expected behavior

I expected for davika at least to ask me before creating files or running commands. just ask does this command seem ok? does this file name and contents seem ok? etc

but also look at tinychatengine open source project and paper, they are running on cpu gpu and mac code assistant with great results they use technology for minimizing resources needed

Screenshots and logs

Configuration

- OS: Windows 11
- Python version: 3.11.9
- Node version: v22.5.1
- bun version: 1.1.21
- search engine: google
- Model: ollama using for this bug llama3.1:8b (it is the default so it is q4_0) should I try q8_0?
- modifications:
- - in devika.py line 26 changed to the correct localhost:port

Additional context

I really think there should be some guide for which model to use with ollama for different vram capacity gpu architecture and ram
also please make devika work with local open source models I have a 4070 12gb vram and 32gb ram which is not low specs by any measure and llama3.1:8b is pretty capable

@zenitogr
Copy link
Author

as you can see the first 3 steps are spot on but it doesnt do that... it searches the web for nextjs structure

@EdenwareApps
Copy link

Same happened here, all files were created with backticks at the beginning and/or end. Interestingly, within the subfolders, folder names were left with the initial backtick and the file name with the final backtick. File contents are OK.

J:\DEVIKA\data\projects\test>dir /s /b
J:\DEVIKA\data\projects\test\`package.json`
J:\DEVIKA\data\projects\test\`README.md`
J:\DEVIKA\data\projects\test\`src
J:\DEVIKA\data\projects\test\`test
J:\DEVIKA\data\projects\test\`src\Database.js`
J:\DEVIKA\data\projects\test\`src\FileHandler.js`
J:\DEVIKA\data\projects\test\`src\IndexManager.js`
J:\DEVIKA\data\projects\test\`test\test.js`
  • OS: Windows 11
  • Python version: 3.12.5
  • Node version: v20.17.0
  • bun version: 1.1.29
  • search engine: duckduckgo
  • Model: GPT-4o
  • modifications:
    • in devika.py line 26 changed to the correct localhost:port
    • in src\agents\researcher\researcher.py:34 edited to 'response.get("ask_user", None)'

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