Skip to content

Commit

Permalink
Small change to fix an API issue with embedding API key support (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhahn authored Aug 22, 2024
1 parent 787bb05 commit 52ad823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def extract_embedding_dependency(self) -> Optional[dict]:
"endpoint": self.embedding_endpoint,
"authentication": {
"type": "api_key",
"api_key": self.embedding_key
"key": self.embedding_key
}
}
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_dotenv_with_elasticsearch_success(app_settings):
assert payload["parameters"] is not None
assert payload["parameters"]["endpoint"] == "dummy"
print(payload)




0 comments on commit 52ad823

Please sign in to comment.