dirge-code/dirge

Support openai-chat-completions vs openai-responses API

已关闭

#703 创建于 2026年7月23日

 (1 条评论) (0 个反应) (0 位负责人)Rust (1 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (20 个星标)
PR 合并指标
 (平均合并 1小时 34分钟) (30 天内合并 83 个 PR)

描述

When you define your custom provider as provider_type=openai, Dirge assumes you want to query /v1/chat/completions - but in my case, I need to query /v1/responses (the new GPT-5+ endpoint). I can see in the source code that you support /v1/responses, but there is no way to dictate its usage when setting up a custom provider.

Backstory: I do not want to install codex, so here is an oauthproxy: https://pkg.go.dev/github.com/lu-zhengda/liteoauthllm -- but it only provides the /v1/responses endpoint (because that's what OpenAI itself provides)

"providers": {
        "openai-gpt-5.6-luna": {
            "model": "gpt-5.6-luna",
            "provider_type": "openai",
            "base_url": "http://127.0.0.1:8639/v1",
            "api_key": "_",
            "allow_insecure": true
        },
        "openai-gpt-5.6-sol": {
            "model": "gpt-5.6-sol",
            "provider_type": "openai",
            "base_url": "http://127.0.0.1:8639/v1",
            "api_key": "_",
            "allow_insecure": true
        }
}

贡献者指南