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

** modelPath failing in LlmWrapper fix! ** #15

Open
bxck75 opened this issue Aug 19, 2023 · 0 comments
Open

** modelPath failing in LlmWrapper fix! ** #15

bxck75 opened this issue Aug 19, 2023 · 0 comments

Comments

@bxck75
Copy link

bxck75 commented Aug 19, 2023

**Sinds u promote both methods of installing (package manager or cloning/downloading the git)

**add this above async void Awake in LlManager.cs

    // Singleton instance
    public static LlmManager Instance { get; private set; }

**add this inside async void Awake in LlManager.cs

   if (Instance == null)
        {
            Instance = this;
        }
   else
       {
            DestroyImmediate(this);
        }

Put this method in Llmanager.cs:

    public string GetModelPath(string modelPath)
    {
        return Path.Combine(Application.streamingAssetsPath, modelPath);
    }

And this around line 117:

      // correcting faulty path by getting it from one central In-App location
      var path = GetModelPath(modelPath);

Then in LlWrapper.cs around line 202:

        // correcting faulty path by getting it from one central In-App location
        var path = LlmManager.Instance.GetModelPath(modelPath);
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

1 participant