Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* @DGaffney @skyemeedan @computermacgyver
* @skyemeedan @computermacgyver
/.github/ @dmou
/production/ @dmou
Dockerfile @dmou
Expand Down
4 changes: 3 additions & 1 deletion app/test/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def test_retrieve_openai_embeddings_calls_openai_api(self):
result = retrieve_openai_embeddings(self.test_content_sample['content'], self.test_content_sample['models'][0])
self.assertIsNotNone(openai.api_key)
self.assertNotEquals(openai.api_key,"")
self.assertEqual(result, self.test_content_embedding_true_value)
# because the values of the vectors returned by the service may change
# we are only checking that they are the expected length
self.assertEqual(len(result), len(self.test_content_embedding_true_value))

if __name__ == "__main__":
unittest.main()
2 changes: 1 addition & 1 deletion production/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ set +o allexport
python manage.py init
python manage.py init_perl_functions
python manage.py db upgrade
gunicorn --preload -w 16 --threads 16 -b 0.0.0.0:${ALEGRE_PORT} --access-logfile - --error-logfile - wsgi:app
gunicorn --preload -w 64 --threads 16 -b 0.0.0.0:${ALEGRE_PORT} --max-requests 1000 --max-requests-jitter 100 --access-logfile - --error-logfile - wsgi:app