They made import

this fork has a working import function - Fork
i tried and it works.
you simply click “clone” and put your github repo link

the author of the fork has posted the cloning script in the description, so maybe someone can add it to oTToDev?

I would use that fork, but OpenAILike models don’t work there (for some reason the fork always loads BASE URL from OpenAI and ignores urls in the .env )

image

2 Likes

@Arka thanks for the hint!

Have you also tested that after importing a repo the LLM knows about the code it imported?
You can simple verify this by importing the repo and then ask “describe whatt his project is about”.

idk if it’s know context, because models are not working…
i don’t have open ai keys to test it (as i said, it always loads open ai for some reason)

yep, the longer context works to describe the cloned repos once reloaded (which it suggests to do) and takes a while on a smallish repo but it gets there rather than just stopping as happened before.

1 Like

Hi, I created the fork, The issue you are having is weird we didn’t have that, We tested with:

Mistral
OpenAILike
Ollama

all worked great, must be something on your end

Note: I didn’t submit a PR because of the many visual changes I’ve done that I’m not sure everyone needs, feel free to take the important parts and integrate it back to the original

1 Like

And yes the model is aware of the changes after the reload, but it overrides the current conversation because I was lazy lol, Feel free to take my changes we already completed our goals

Note: It takes a while to clone because I added 300ms delay between files for no good reason

Note 2: The appended user messages may be removed - untested

1 Like

So here is what my friend did to fix the OpenAILike using my fork:

  1. Rename .env.local.rename to .env.local
  2. Fill in there both the base url and the api key, not from the website
  3. Worked
    (Make sure you restart the app .env changes requires a full restart)

Also the external nodejs script is not used anymore I integrated it on the website itself instead

For more information about how I figured it out: (Saving changes after reload when cloning)

1 Like

I finally get to proof of concept for folder import
Githup import is after that

And it works on reloads
Needs some work but is a good foundation

Here is PR

3 Likes