cleanup: usuń martwy kod vector-store / file_search #29

Open
gitea wants to merge 1 commits from cleanup-dead-vector-store into main
Owner

Potwierdziłeś, że file_search nie było używane — a te cztery funkcje były jego jedyną implementacją: create_vector_store, upload_files_to_vector_store, add_files_to_vector_store, delete_files_from_vector_store, plus stała VECTOR_STORE_ID, której tylko one czytały.

Zweryfikowane przed usunięciem: zero wywołań każdej z nich. Czyli niczego nie mogły wysadzić — ale były ostatnimi odwołaniami do beta.vector_stores i beta.assistants, czyli tego samego wygaszonego API, które raz już położyło cały cog AI (404 w ścieżce startu). Podpięcie ich kiedykolwiek z powrotem trafiłoby w to samo 404.

Po tej zmianie żadna ścieżka w module nie sięga już tego API.

54 linie mniej, zero zmian zachowania. Suite: 82 unit + 71 integration zielone.

🤖 Generated with Claude Code

Potwierdziłeś, że `file_search` nie było używane — a te cztery funkcje były jego jedyną implementacją: `create_vector_store`, `upload_files_to_vector_store`, `add_files_to_vector_store`, `delete_files_from_vector_store`, plus stała `VECTOR_STORE_ID`, której **tylko one** czytały. **Zweryfikowane przed usunięciem:** zero wywołań każdej z nich. Czyli niczego nie mogły wysadzić — ale były **ostatnimi odwołaniami do `beta.vector_stores` i `beta.assistants`**, czyli tego samego wygaszonego API, które raz już położyło cały cog AI (404 w ścieżce startu). Podpięcie ich kiedykolwiek z powrotem trafiłoby w to samo 404. Po tej zmianie **żadna ścieżka w module nie sięga już tego API**. 54 linie mniej, zero zmian zachowania. Suite: **82 unit + 71 integration** zielone. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gitea self-assigned this 2026-08-28 07:40:10 +00:00
gitea added 1 commit 2026-08-28 07:40:10 +00:00
AI: delete the dead OpenAI vector-store / file_search code
CI / compile (pull_request) Successful in 9s
CI / unit (pull_request) Successful in 24s
CI / integration (pull_request) Successful in 29s
25d6d4a3c0
file_search was confirmed unused, and these four functions were its only
implementation: create_vector_store, upload_files_to_vector_store,
add_files_to_vector_store and delete_files_from_vector_store, plus the
VECTOR_STORE_ID constant they were the only readers of.

Nothing called any of them - verified before removing - so they could not
crash anything, but they were the last references to beta.vector_stores and
beta.assistants: a sunset API that already took the whole AI cog down once
when a startup path touched it. Wiring them back up would have hit the same
404. Removing them means no path in this module can reach that API again.

54 lines gone, no behaviour change. Suite: 82 unit + 71 integration green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Some checks are pending
CI / compile (pull_request) Successful in 9s
CI / unit (pull_request) Successful in 24s
CI / integration (pull_request) Successful in 29s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin cleanup-dead-vector-store:cleanup-dead-vector-store
git checkout cleanup-dead-vector-store
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea/conjurer#29