Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove global state #1216

Merged
merged 5 commits into from
Nov 12, 2023
Merged

fix: Remove global state #1216

merged 5 commits into from
Nov 12, 2023

Conversation

pabloogc
Copy link
Collaborator

No functional changes, this PR removes all global state (specially settings) so tests are very easiy to write.

Also added a way to inject mock settings for the same reason.

# Conflicts:
#	private_gpt/server/chat/chat_router.py
#	private_gpt/server/chunks/chunks_router.py
#	private_gpt/server/completions/completions_router.py
#	private_gpt/server/embeddings/embeddings_router.py
#	private_gpt/server/ingest/ingest_router.py
#	tests/fixtures/fast_api_test_client.py
@pabloogc pabloogc merged commit 022bd71 into main Nov 12, 2023
6 checks passed
@lopagela lopagela deleted the inject-settings branch November 13, 2023 09:28
simonbermudez pushed a commit to simonbermudez/saimon that referenced this pull request Feb 24, 2024
* Remove all global settings state

* chore: remove autogenerated class

* chore: cleanup

* chore: merge conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants