Matt Toohey e7cc82abf5 fix(databricks): adapt Responses API payload to Chat Completions format for GPT-5.x models
Databricks' serving-endpoints/responses endpoint expects Chat Completions
format (messages, text content types, function-wrapped tools), but
create_responses_request() builds OpenAI Responses API format (input,
input_text/output_text, flat tool definitions). This caused a 400 error
("Missing required Chat parameter: 'messages'") when using GPT-5.5 or
other responses-capable models via the Databricks provider.

Post-process the payload after create_responses_request() to convert:
- "input" → "messages" with content type renaming (input_text/output_text → text)
- function_call items → assistant tool_calls in Chat Completions format
- function_call_output items → tool-role messages
- Responses API tool format → Chat Completions {type, function: {...}} format
- reasoning object → reasoning_effort string
- max_output_tokens → max_completion_tokens
- Remove store field

Also switch response handler from stream_responses_compat to
stream_openai_compat since Databricks returns Chat Completions SSE format.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
2026-05-14 22:10:33 +10:00
2026-05-11 16:02:44 +00:00
2026-03-07 17:16:19 +00:00
…

🦆 goose has moved! This project has moved from block/goose to the Agentic AI Foundation (AAIF) at the Linux Foundation. Some links and references are still being updated — please bear with us during the transition.

goose

your native open source AI agent — desktop app, CLI, and API — for code, workflows, and everything in between

Discord CI

goose is a general-purpose AI agent that runs on your machine. Not just for code — use it for research, writing, automation, data analysis, or anything you need to get done.

A native desktop app for macOS, Linux, and Windows. A full CLI for terminal workflows. An API to embed it anywhere. Built in Rust for performance and portability.

goose works with 15+ providers — Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock, and more. Use API keys or your existing Claude, ChatGPT, or Gemini subscriptions via ACP. Connect to 70+ extensions via the Model Context Protocol open standard.

goose is part of the Agentic AI Foundation (AAIF) at the Linux Foundation.

Get started

Download the desktop app for macOS, Linux, and Windows.

Or install the CLI:

curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash

Quick links

Need help?

a little goose humor 🪿

Why did the developer choose goose as their AI agent?

Because it always helps them "migrate" their code to production! 🚀

goose around with us

S
Description
No description provided
Readme Apache-2.0 1.5 GiB
Languages
Rust 63.6%
TypeScript 29.6%
JavaScript 1.7%
Shell 1.6%
Python 1.5%
Other 1.8%