Skip to content

[BUG] Chat related workflows for LocalAI server #488

@yarray

Description

@yarray

First thanks for the excellent framework! It is very easy to use and promising. I have built several workflows with it using ChatGPT and am currently switching to LocalAI and open source models.

Describe the bug

Currently with a LocalAI backend Flowise can support single shot completion but not chat related workflows. I have observed:

What works:

Given template, using normal prompt node and connect to LLM chain.

截屏2023-07-06 10 50 29

What does not work:

  1. Use ChatPromptTemplate and connect to LLM chain.

截屏2023-07-06 11 50 23

Chat and the AI will respond with "}"

  1. The same settings, but with the OpenAI node and the endpoint of LocalAI

截屏2023-07-06 10 45 59

Chat and the AI will report undefined property "text"

To Reproduce
Steps to reproduce the behavior:

See the picture above.

Expected behavior

AI can respond with actual answers

Screenshots

See the above.

Flow

See the above.

Setup

  • Installation: docker compose
  • Flowise Version: latest
  • OS: Linux
  • Browser: Firefox

Additional context

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