Skip to content

Client.chat() got an unexpected keyword argument 'temperature' #11

@gaduffl

Description

@gaduffl

The command:

dolphin-mcp-cli "Peform a test internet search"

leads to the error:

Client.chat() got an unexpected keyword argument 'temperature'

despite the temperature parameter not being set in the config:

mcp_config.json

{
  "mcpServers": {
      "brave-search": {
        "command": "...\\MCP\\venv\\src\\node-v23.10.0-win-x64\\node.exe",
        "args": [
          "...\\MCP\\venv\\src\\node-v23.10.0-win-x64\\node_modules\\npm\\bin\\npx-cli.js",
          "-y",
          "@modelcontextprotocol/server-brave-search"
        ],
        "env": {
          "BRAVE_API_KEY": "BSA****"
        }
      }
  },
  "models": [
    {
      "title": "Gemma",
      "provider": "ollama",
      "model": "gemma3:4b",
      "apiKey": "ollama",
      "apiBase": "http://localhost:11434/v1"
    }
  ]
}

.env

OPENAI_API_KEY=ollama
OPENAI_MODEL=gemma3:4b
OPENAI_ENDPOINT=http://localhost:11434/v1

BRAVE_API_KEY = "BSA***"

GPT4.5 suggests that the Client.chat() method in the Ollama API no longer accepts the temperature parameter directly.

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