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

Fixes #542 allow system messages + chat for palm api #3718

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

Conversation

SujanShilakar
Copy link
Contributor

@SujanShilakar SujanShilakar commented May 18, 2024

Allow system messages + chat messages in palm api

Fixes #542

🆕 New Feature

Modified completion Function:

Constructed a prompt string from context and messages.
Used the prompt string in the API call to palm.generate_text.

Logging Adjustments:

Updated pre-call and post-call logging to handle the new input structure as a single prompt.

Response Handling:

Adjusted the response processing to handle the structured response from the Palm API.

cc: @krrishdholakia / @ishaan-jaff

Copy link

vercel bot commented May 18, 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 Jun 8, 2024 3:23am

@paneru-rajan
Copy link
Contributor

Fixes #542

litellm/llms/palm.py Outdated Show resolved Hide resolved
@SujanShilakar SujanShilakar changed the title Issue number 542 allow system messages + chat for palm api Fixes #542 allow system messages + chat for palm api May 19, 2024
Copy link
Contributor

@edwinjosegeorge edwinjosegeorge left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

[Feature]: Allow system messages + chat messages in palm api
3 participants