Skip to content

Conversation

@Amnah199
Copy link
Contributor

Related Issues

Proposed Changes:

Add a new integration for TogetherAI that inherits from OpenAIChatGenerator

How did you test it?

Add new tests

Notes for the reviewer

Checklist

@github-actions github-actions bot added topic:CI type:documentation Improvements or additions to documentation labels Sep 12, 2025
@Amnah199 Amnah199 marked this pull request as ready for review September 12, 2025 16:38
@Amnah199 Amnah199 requested a review from a team as a code owner September 12, 2025 16:38
@Amnah199 Amnah199 requested review from julian-risch and removed request for a team September 12, 2025 16:38
@Amnah199 Amnah199 changed the title feat: Add Together AI Generator and ChatGenerator feat: Add Together AI integration Sep 12, 2025
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

Looks quite good to me already! I have a couple of change requests, most of them with suggestions of code changes. In addition, the repo README should list the integration https://github.com/deepset-ai/haystack-core-integrations/blob/main/README.md

@Amnah199
Copy link
Contributor Author

Sorry for all the baseless typos in this PR! Will request review again once I have tested the component in deepset platform.

@sjrl sjrl added the new integration Discuss the creation of a new integration in Core label Sep 16, 2025
tools: Optional[Union[List[Tool], Toolset]] = None,
timeout: Optional[float] = None,
max_retries: Optional[int] = None,
http_client_kwargs: Optional[Dict[str, Any]] = None,
Copy link
Contributor Author

@Amnah199 Amnah199 Sep 16, 2025

Choose a reason for hiding this comment

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

Wondering whether we need this param http_client_kwargs here. Its compatible but not sure if it adds any value for this integration.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense to me to have it so that http client settings can be passed on to the OpenAIChatGenerator and I see verify=False in the example to disable ssl verification.

@Amnah199
Copy link
Contributor Author

@julian-risch I tested this component as a custom component in a dc pipeline and it works. Would be nice to have another pass for the review.

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

Looks good to me! Just some smaller changes to comments that I'll apply directly. The PR is ready to be merged. 👍

tools: Optional[Union[List[Tool], Toolset]] = None,
timeout: Optional[float] = None,
max_retries: Optional[int] = None,
http_client_kwargs: Optional[Dict[str, Any]] = None,
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense to me to have it so that http client settings can be passed on to the OpenAIChatGenerator and I see verify=False in the example to disable ssl verification.

@Amnah199 Amnah199 merged commit c2bd9e2 into main Sep 26, 2025
11 checks passed
@Amnah199 Amnah199 deleted the together-ai-integration branch September 26, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new integration Discuss the creation of a new integration in Core topic:CI type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants