Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: code interpreter #263

Merged
merged 8 commits into from
Mar 28, 2025
Merged

feat: code interpreter #263

merged 8 commits into from
Mar 28, 2025

Conversation

CompuIves
Copy link
Contributor

@CompuIves CompuIves commented Mar 8, 2025

Have you read the Contributing Guidelines?

Issue #

Describe your changes

This adds support for Together Code Interpreter to our SDK.

  • Add code interpreter resource/types
  • Add unit tests
  • Add little demo

One major change in this PR: we removed /v1 from the base url, and add it manually to the API calls. This is because /tci does not start with /v1. I also had an issue with this in the past, where I wanted to call /v0/models but couldn't because /v1 was hardcoded in the base url.

We now use /v1/execution! Woohoooo!

@@ -9,7 +9,7 @@
MAX_RETRY_DELAY = 8.0

# API defaults
BASE_URL = "https://api.together.xyz/v1"
BASE_URL = "https://api.together.xyz"
Copy link
Member

Choose a reason for hiding this comment

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

this breaks openai python sdk compatibility - the version needs to be in the base url

could you add a redirect for /v1/tci -> /tci to fix this?

@orangetin orangetin merged commit dd34b7d into main Mar 28, 2025
9 checks passed
@orangetin orangetin deleted the feat/together-interpreter branch March 28, 2025 21: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.

2 participants