Skip to content

Commit

Permalink
issue #49 - secrets correction
Browse files Browse the repository at this point in the history
  • Loading branch information
melanie-fressard committed Nov 22, 2023
1 parent 4363ef1 commit 963c049
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
lint-test:
# uses: ai-cfia/github-workflows/.github/workflows/workflow-lint-test-node.yml@main
uses: ai-cfia/github-workflows/.github/workflows/workflow-lint-test-python.yml@main
uses: ai-cfia/github-workflows/.github/workflows/workflow-lint-test-python.yml@issue-34-add-environment-variable-for-ailab-db-lint-test
secrets: inherit

build:
Expand Down
4 changes: 2 additions & 2 deletions ailab/db/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
dotenv.load_dotenv()

FINESSE_WEIGHTS = os.environ.get("FINESSE_WEIGHTS") \
or db.raise_db_error("FINESSE_WEIGHTS is not set")
or db.raise_error("FINESSE_WEIGHTS is not set")


if FINESSE_WEIGHTS:
Expand Down Expand Up @@ -105,4 +105,4 @@ def search_from_text_query(cursor, query):
else:
data.update(db_data)
docs = search(cursor, data['embedding'])
return docs
return docs
2 changes: 1 addition & 1 deletion ailab/models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ def get_chat_answer(system_prompt, user_prompt, max_token):
{"role": "user", "content": (user_prompt)}
]
)
return response
return response

0 comments on commit 963c049

Please sign in to comment.