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 allowing clients to limit which finish_reasons they allow. #1026

Open
wants to merge 2 commits into
base: canary
Choose a base branch
from

Commits on Oct 11, 2024

  1. Add support for allowing clients to limit which finish_reasons they a…

    …llow.
    
    Clients can do:
    
    ```
    client<llm> MyClient {
      provider "openai"
      options {
        finish_reason_whitelist ["stop"]
      }
    }
    
    client<llm> MyClient {
      provider "openai"
      options {
        finish_reason_blacklist ["content_policy"]
      }
    }
    ```
    hellovai committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e56e099 View commit details
    Browse the repository at this point in the history
  2. rename

    hellovai committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    535156c View commit details
    Browse the repository at this point in the history