Skip to content

Conversation

@acstrahl
Copy link
Contributor

@acstrahl acstrahl commented Jan 9, 2026

No description provided.

@acstrahl acstrahl requested a review from wisedrette January 9, 2026 22:08
Copy link
Contributor

@wisedrette wisedrette left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +17 to +18
if not api_key:
api_key = DEFAULT_API_KEY
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to raise a dedicated exception if the API key is missing in the environment variables.


DEFAULT_API_KEY = os.environ.get("TOGETHER_API_KEY")
DEFAULT_BASE_URL = "https://api.together.xyz/v1"
DEFAULT_MODEL = "meta-llama/Meta-Llama-3-8B-Instruct-Lite"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a comment here with a link to the list of models for longevity - Together periodically removes older models from their roster.

They also removed the freemium version, which should be commented on either here or in the lesson (until we add a code runner).

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.

3 participants