feat: Overhaul invocation parameter specification (#5228)
* Refactor invocation parameter processing * Fix miport * Rename validation function * Update graphql schema * Update type annotation to union type * Add base class to union type * Update gql schema * Use strawberry interface * refactor: Render invocation parameters form using data from api (#5165) * refactor: Render invocation parameters form using data from api * Map model invocation parameters to invocation parameter inputs * Fail gracefully when parsing invocation params in ui * Improve regist * Update gql schema and supported invocation parameters query * Set default to modelName * Add canonical name to invocation parameter input * Merge similar invocation parameters across providers, if possible, when switching providers * Fix construct_invocation_parameters method * Update invocation parameters for supported models * Allow canonical name to be unset * Use correct import * Use None for canonical types * Remove stop sequence support from o1 preview models * Bump generated gql types * Remove redundant invocation parameters from input * Fix type annotations * Fix type issues and regenerate schemas * Improve InvocationParameter code maintainability * Point TODO to github issues * Fix tests and add todos * Clean up types * Don't import TypeAlias (deprecated) * Remove invocationparametertype * Update gql schema * Ruff 🐶 * Update tests for new InvocationParameter spec * Pin requirement for tests * Fix urllib3 dependency --------- Co-authored-by: Anthony Powell <apowell@arize.com>
D
Dustin Ngo committed
2e7e670d15078d570bcc3fe3a670a9ffccc695cd
Parent: 6330b20
Committed by GitHub <noreply@github.com>
on 10/31/2024, 5:57:49 PM