Skip to content

"finalResponse.model.split is not a function" #117

@FrankDMartinez

Description

@FrankDMartinez

In "frontend/src/components/Stage3.jsx" is a reference to finalResponse.model.split('/')[1]. However, finalResponse.model is an array containing a single string, at least on my system. While I could modify this code to read finalResponse.model[0].split('/')[1], soemthing tells me this is not the best way to go about doing so. Have I possibly misconfigured something? All I have done to modify the code from the default settings is to change "backend/config.py" to look like so:

"""Configuration for the LLM Council."""

import os
from dotenv import load_dotenv

load_dotenv()

# OpenRouter API key
OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY")

# Council members - list of OpenRouter model identifiers
COUNCIL_MODELS = [
    "xiaomi/mimo-v2-flash:free", # "openai/gpt-5.1",
    "mistralai/devstral-2512:free", # "google/gemini-3-pro-preview",
    "kwaipilot/kat-coder-pro:free", #"anthropic/claude-sonnet-4.5",
    "tngtech/deepseek-r1t2-chimera:free" # "x-ai/grok-4",
]

# Chairman model - synthesizes final response
CHAIRMAN_MODEL = "xiaomi/mimo-v2-flash:free" # "google/gemini-3-pro-preview"

# OpenRouter API endpoint
OPENROUTER_API_URL = "https://openrouter.ai/api/v1/chat/completions"

# Data directory for conversation storage
DATA_DIR = "data/conversations"

Thanks in advance.

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