Skip to content

Conversation

@mina-parham
Copy link
Contributor

No description provided.

Copy link
Member

@dadmobile dadmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ruff errors seem legit.

@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2025

Codecov Report

❌ Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
api/transformerlab/fastchat_openai_api.py 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

lang_code = params.get("lang_code", None)
stream = params.get("stream", False)

experiment_dir = get_experiments_dir()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion but I think this doesnt work because the lab context getting set when this file runs is not passed on to the uvicorn app that runs from this. I do set a lab context so the get_experiments_dir should've worked if it was running directly in this file. Do you think a better approach would be passing in experiments dir through the main() function by calling this function there? Or does that not work?
I'm just concerned if plugin_harness did not set the context correctly for this case and was wanting to get to the core of the issue

Copy link
Member

@dadmobile dadmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for now. There are two bugs still but I will file separate tickets for those:

  • it keeps creating output_audio.wav and overwriting the last generated file
  • downloads come with a .mp3 filename but are actually a .wav

@mina-parham mina-parham merged commit b11f44c into main Jan 20, 2026
9 checks passed
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.

6 participants