Skip to content

Conversation

@Abhijay007
Copy link
Collaborator

@Abhijay007 Abhijay007 commented Jan 9, 2026

Closes #6354

PR descripton

This PR fixes an inconsistency where the desktop version and CLI version of goose required different API URL formats for custom OpenAI-compatible providers. Previously, the desktop and CLI showed /v1/messages as the placeholder, but the actual path construction logic didn't properly handle the standard OpenAI format of /v1 as a base path.

Type of Change

  • Bug fix

AI Assistance

  • This PR was created or reviewed with AI assistance, Copilot for PR description

Copilot AI review requested due to automatic review settings January 9, 2026 17:55
@Abhijay007 Abhijay007 marked this pull request as draft January 9, 2026 17:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an inconsistency where the desktop version and CLI version of goose required different API URL formats for custom OpenAI-compatible providers. Previously, the desktop and CLI showed /v1/messages as the placeholder, but the actual path construction logic didn't properly handle the standard OpenAI format of /v1 as a base path.

Key changes:

  • Updated placeholder text in both desktop UI and CLI to use /v1 instead of /v1/messages
  • Modified the URL path construction logic in openai.rs to automatically append /chat/completions to base paths that don't already have it

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
ui/desktop/src/components/settings/providers/modal/subcomponents/forms/CustomProviderForm.tsx Updated placeholder from /v1/messages to /v1 for consistency with OpenAI standard
crates/goose-cli/src/commands/configure.rs Updated placeholder from /v1/messages to /v1 for consistency with OpenAI standard
crates/goose/src/providers/openai.rs Added logic to automatically append /chat/completions to base paths, handling various URL formats (with/without trailing slash, already complete paths)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@Abhijay007 Abhijay007 marked this pull request as ready for review January 12, 2026 16:57
Copilot AI review requested due to automatic review settings January 12, 2026 16:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@alexhancock alexhancock merged commit 115bbd5 into block:main Jan 12, 2026
24 checks passed
fbalicchia pushed a commit to fbalicchia/goose that referenced this pull request Jan 13, 2026
zanesq added a commit that referenced this pull request Jan 13, 2026
…ased

* 'main' of github.com:block/goose: (23 commits)
  Use Intl.NumberFormat for token formatting in SessionsInsights (#6466)
  feat(ui): format large and small token counts for readability (#6449)
  fix: apply subrecipes when using slash commands (#6460)
  Fix: exclude platform_schedule_tool in CLI (#6442)
  Fix: Small update in how ML-based prompt injection determines final result (#6439)
  docs: remove SSE transport and rename to Streamable HTTP (#6319)
  fix: correct Cloudinary extension command and env variable (#6453)
  fix: add gap between buttons in MacDesktopInstallButtons.js (#6452)
  refactor: include hidden dotfiles folders in file picker search (#6315)
  upgraded safe npm packages (#6450)
  chore(deps): bump react-router and react-router-dom in /ui/desktop (#6408)
  chore(deps): bump lru from 0.12.5 to 0.16.3 (#6379)
  chore(deps-dev): bump @modelcontextprotocol/sdk from 1.24.0 to 1.25.2 in /ui/desktop (#6375)
  fix: inconsistent API url requirement between desktop and CLI versions (#6419)
  feat(vertexai): Add streaming support (#6409)
  fix deeplink recipe launch cold start (#6210)
  Spell check setting (#6446)
  File bug directly (#6413)
  fix(cli): incorrect bin name in shell completions (#6444)
  Use crunchy from crates instead of git fork (#6415)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent API Url requirement between desktop and CLI versions

3 participants