---
title: "Discussion on \"Codex Relay Config: Should wire_api Be chat or responses?\" | Hashnode"
description: "Discussion on \"Codex Relay Config: Should wire_api Be chat or responses?\". In the Codex config for a relay there's one line people get stuck on: wire_api.\nStart with chat\nmodel = \"gpt-5.6\"\nmodel_provider = \"relay\"\n\n[model_providers.relay]\nname = \"relay\"\nbase_url = \"https://y"
url: "https://hashnode.com/posts/codex-relay-config-should-wire-api-be-chat-or-responses/6acc375da8662b5ce37f908d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Codex Relay Config: Should wire\_api Be chat or responses?](https://jliushi.hashnode.dev/codex-relay-config-should-wire-api-be-chat-or-responses?utm_source=hashnode&utm_medium=feed)

In the Codex config for a relay there's one line people get stuck on: wire\_api. Start with chat model = "gpt-5.6" model\_provider = "relay" \[model\_providers.relay\] name = "relay" base\_url = "https://y

Oct 12 · 1 min read · jliushi.hashnode.dev  
Read the article

-   [#codex](https://hashnode.com/tag/codex)
-   [#ai-relay](https://hashnode.com/tag/ai-relay)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#toml](https://hashnode.com/tag/toml)

## Written by

[江流石](https://hashnode.com/@jliushi)

@jliushi

  
[View profile](https://hashnode.com/@jliushi)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
