Skip to content

[ERROR] modelAlias is required and must be a string #31

@radiantone

Description

@radiantone
renderer.js:19 Uncaught (in promise) Error: modelAlias is required and must be a string
Promise.then
chatLLM @ renderer.js:12
(anonymous) @ renderer.js:23

Using your example

async function chatLLM() {
  await window.electronAi.create({
    modelPath: "Tiny-LLM.Q4_K_M.gguf"
  })

  // Then, talk to it
  const response = await window.electronAi.prompt("Hi! How are you doing today?")
  console.log(response);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions