apac-ops-bot/backend
SamoilenkoVadym 7cfd228225 Fix OpenAI integration: switch to Chat Completions API
- Update openai package to 1.58.1 (from 1.10.0)
- Replace Responses API (doesn't exist) with Chat Completions API
- Simplify OpenAI service to use standard chat endpoint
- Remove file_search tool references (not available in base API)
- Keep system instructions for professional responses
- Update cached tokens detection for new API format
- Remove unused imports and parameters

The Responses API was not a real OpenAI endpoint. Using standard
Chat Completions API which is the correct way to interact with
OpenAI models like gpt-5-nano-2025-08-07.
2026-01-27 20:28:34 +00:00
..
alembic Update pricing for gpt-5-nano and fix chat interface 2026-01-27 20:18:42 +00:00
app Fix OpenAI integration: switch to Chat Completions API 2026-01-27 20:28:34 +00:00
scripts Fix test user authentication issues 2026-01-27 20:09:07 +00:00
tests Implement OpenAI Responses API service with RAG enforcement 2026-01-27 14:26:43 +00:00
.env.example Update pricing for gpt-5-nano and fix chat interface 2026-01-27 20:18:42 +00:00
alembic.ini Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
Dockerfile Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
requirements-dev.txt Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
requirements.txt Fix OpenAI integration: switch to Chat Completions API 2026-01-27 20:28:34 +00:00