Bug: Agent Mode Fails with 404 "Resource not found" (Azure OpenAI Custom Provider)

Open
#1,183 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, kotlin

Research direction

Start by locating the Agent Mode custom-provider request path and comparing it with the working Chat Mode request. The issue provides no files, tests, or stack trace, so identify the code that constructs the Azure OpenAI endpoint and deployment request. Done means pinpointing why Agent Mode receives a 404 while Chat Mode succeeds, with a reproducible request and a regression test.

Written by the indexing model from the issue text.

Description

bug
What happened?
Description

We are attempting to use ProxyAI's Agent Mode, but it consistently fails with the following error:

Error from client: CustomOpenAILLMClient  
Status code: 404  
Error body: {"error":{"code":"404","message": "Resource not found"}}

However, Chat Mode works correctly using the same configuration and Azure OpenAI deployment.

We are using a custom AI provider (Azure OpenAI specifically).

✅ What Works

  • Chat mode functions normally
    • Same Azure OpenAI deploymen
    • Same API key and endpoint configuration

proxy ai version: 3.7.3-241.1
PyCharm version: 2025.3.2.1

Relevant log output or stack trace

Steps to reproduce

No response

CodeGPT version

3.7.3-241.1

Operating System

macOS

Dominant language
Kotlin
Stars
1.9k
Forks
401
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from carlrobertoh/ProxyAI

All issues in carlrobertoh/ProxyAI

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.