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

Add Support for prompt_filter_results in @sap-ai-sdk/langchain Client Response #509

Open
Zineeddine07 opened this issue Jan 30, 2025 · 0 comments
Labels
feature request New feature or request

Comments

@Zineeddine07
Copy link

Describe the Problem

In the Azure OpenAI API response for the route:

deployments/{deployment-id}/completions

the field prompt_filter_results is returned. This field provides content filtering results for zero or more prompts in the request.

Currently, prompt_filter_results is supported in the run method of the AzureOpenAiChatClient in @sap-ai-sdk/foundation-models. However, it is not supported in the @sap-ai-sdk/langchain client.

Propose a Solution

  • Update the AzureOpenAiChatClient in @sap-ai-sdk/langchain to parse and include prompt_filter_results in its response.

Describe Alternatives

No response

Affected Development Phase

Getting Started

Impact

No Impact

Timeline

No response

Additional Context

No response

@Zineeddine07 Zineeddine07 added the feature request New feature or request label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant