Skip to content

Conversation

@janbritz
Copy link
Contributor

@janbritz janbritz commented Nov 3, 2025

Closes #242

@janbritz janbritz marked this pull request as ready for review November 3, 2025 13:42
requested_environment_variables = self._manifest.environment_variables or set()
if missing_environment_variables := requested_environment_variables - os.environ.keys():
msg = f"Required environment variables not set: {missing_environment_variables}"
raise ValueError(msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

Führe hier bitte noch eine eigene Exception ein, die irgendwo abgefangen wird und nur die Nachricht ausgeben lässt. Für so einen Standard-Fehler sollten wir den Usern nicht die komplette Exception inkl. Stacktrace ausgeben lassen.

Copy link
Contributor Author

@janbritz janbritz Nov 4, 2025

Choose a reason for hiding this comment

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

1a8396d

$ questionpy-sdk run llm_teacher/
Successfully built package 'llm_teacher/'.
Error: The following environment variables are required to run the package: OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_API_KEY

@janbritz janbritz force-pushed the feat/request-env-vars branch from bb503cc to 1a8396d Compare November 4, 2025 14:35
@janbritz janbritz requested a review from MartinGauk November 5, 2025 12:05
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.

Umgebungsvariablen übergeben

3 participants