Compare commits

..

3 Commits

Author SHA1 Message Date
Luis Pater
fa762e69a4 Merge branch 'dev' of github.com:luispater/CLIProxyAPI into dev 2025-09-14 22:55:18 +08:00
Luis Pater
7e0fd1e260 Add Keep-Alive header 2025-09-14 22:54:36 +08:00
hkfires
d6037e5549 Refine .gitignore and .dockerignore files 2025-09-14 16:29:06 +08:00
3 changed files with 16 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
# Git and GitHub folders
.git
.github
.git/*
.github/*
# Docker and CI/CD related files
docker-compose.yml
@@ -10,6 +10,7 @@ docker-compose.yml
Dockerfile
# Documentation and license
docs/*
README.md
README_CN.md
MANAGEMENT_API.md
@@ -20,6 +21,11 @@ LICENSE
config.example.yaml
# Runtime data folders (should be mounted as volumes)
auths
logs
auths/*
logs/*
conv/*
config.yaml
# Development/editor
.claude/*
.vscode/*

6
.gitignore vendored
View File

@@ -1,6 +1,10 @@
config.yaml
docs/*
logs/*
conv/*
auths/*
!auths/.gitkeep
AGENTS.md
.vscode/*
.claude/*
AGENTS.md
CLAUDE.md

View File

@@ -447,6 +447,7 @@ func (c *CodexClient) APIRequest(ctx context.Context, modelName, endpoint string
req.Header.Set("Openai-Beta", "responses=experimental")
req.Header.Set("Session_id", sessionID)
req.Header.Set("Accept", "text/event-stream")
req.Header.Set("Connection", "Keep-Alive")
if c.apiKeyIndex != -1 {
// Using API key authentication