Skip to content

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

Description

@bxck75

**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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions