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

astra-assistants api support #4118

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

phact
Copy link
Contributor

@phact phact commented Jun 11, 2024

astra-assistants api support

Assistants API support for astra-assistants (an open source based drop in compatible Assistants API service that supports third party LLMs and embeddings)

Type

🆕 New Feature
✅ Test
📖 Documentation

Changes

[REQUIRED] Testing -

Extended existing assistants tests to cover astra-assistants provider
image

Test procedure:

poetry run pytest litellm/tests/test_assistants.py -k "not provider_azure"

Copy link

vercel bot commented Jun 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 4:35am

@phact
Copy link
Contributor Author

phact commented Jun 11, 2024

related to #2842

@phact
Copy link
Contributor Author

phact commented Jun 17, 2024

Hi folks, checking in here. Would appreciate a review @ishaan-jaff @krrishdholakia
Thanks in advance!

@phact
Copy link
Contributor Author

phact commented Jul 10, 2024

Hi folks, would appreciate some feedback on this PR @krrishdholakia @ishaan-jaff




class AstraAssistantsAPI(OpenAIAssistantsAPI):
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't see why this needs to exist as a separate file / if-else block in all the assistant api endpoints.

If it's openai-compatible, all you need to do is update get_llm_provider like we do for groq

and this should work without major changes.

See - https://github.com/BerriAI/litellm/pull/2168/files#diff-9661b0d8f1d9f48433f2323d1102e963d3098f667f7a25caea79f16fa282f6dd

Copy link
Contributor Author

@phact phact Jul 12, 2024

Choose a reason for hiding this comment

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

Oh cool, I didn't realize that thanks!
Will fix

Copy link
Contributor

@krrishdholakia krrishdholakia left a comment

Choose a reason for hiding this comment

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

Please change to just update get_llm_provider

and add astra_assistants to the list of openai-compatible providers.

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