Skip to content

Commit

Permalink
fix: incorrect credential fields usage
Browse files Browse the repository at this point in the history
  • Loading branch information
quitrk committed May 23, 2024
1 parent bae1fa6 commit 476145b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions skynet/auth/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ async def setup_credentials():

file_watcher.start()

# temp debugging log
log.info(f'Credentials: {credentials}')

log.info('Credentials set. Watching for changes...')


Expand Down
4 changes: 2 additions & 2 deletions skynet/modules/ttt/summaries/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ async def run_job(job: Job) -> None:
try:
customer_id = job.metadata.customer_id
options = get_credentials(customer_id) if customer_id else {}
api_key = options.get('api_key')
model_name = options.get('model_name')
api_key = options.get('secret')
model_name = options.get('model')

if api_key:
log.info(f"Forwarding inference to OpenAI for customer {job.metadata.customer_id}")
Expand Down

0 comments on commit 476145b

Please sign in to comment.