-
Notifications
You must be signed in to change notification settings - Fork 18
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
changing schema naming #100
changing schema naming #100
Conversation
69d82c8
to
bf0151d
Compare
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
a297206
to
d8b94d0
Compare
Signed-off-by: Alexa Griffith <[email protected]>
Could you keep the PR draft until all CI happy? |
9ba2a3a
to
068ce0e
Compare
Signed-off-by: Alexa Griffith <[email protected]> change nested schema to name in structs Signed-off-by: Alexa Griffith <[email protected]> fix factory logic Signed-off-by: Alexa Griffith <[email protected]> rebase# This is a combination of 20 commits. fix some other schema names to be consistent Signed-off-by: Alexa Griffith <[email protected]> gitignore idea Signed-off-by: Alexa Griffith <[email protected]> fix missing name change Signed-off-by: Alexa Griffith <[email protected]> fix filterconfig Signed-off-by: Alexa Griffith <[email protected]> fix test Signed-off-by: Alexa Griffith <[email protected]> renaming Signed-off-by: Alexa Griffith <[email protected]> fix Signed-off-by: Alexa Griffith <[email protected]> fix sink test naming Signed-off-by: Alexa Griffith <[email protected]> fix controller test Signed-off-by: Alexa Griffith <[email protected]> add name rule Signed-off-by: Alexa Griffith <[email protected]> fix rule Signed-off-by: Alexa Griffith <[email protected]> rename klog pkg Signed-off-by: Alexa Griffith <[email protected]> fix cel tests Signed-off-by: Alexa Griffith <[email protected]> re-add openai pkg Signed-off-by: Alexa Griffith <[email protected]> fix llm backend yaml Signed-off-by: Alexa Griffith <[email protected]> fix backend Signed-off-by: Alexa Griffith <[email protected]> fix the code style Signed-off-by: Alexa Griffith <[email protected]> fix order Signed-off-by: Alexa Griffith <[email protected]> fix Signed-off-by: Alexa Griffith <[email protected]> lint Signed-off-by: Alexa Griffith <[email protected]>
068ce0e
to
2e997d4
Compare
// InputSchema is a required field | ||
InputSchema *ToolInputSchema `json:"inputSchema"` | ||
// Schema is a required field | ||
Schema *ToolSchema `json:"schema"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be changed, it is the AWS bedrock schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offline discussion - fixed this. didn't realize this was a field required by aws and that their are issues using their api for these types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I think we should have a test for if our hard coded fields and theirs misalign
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
// APISchema corresponds to APISchema in api/v1alpha1/api.go. | ||
type APISchema string | ||
// APISchemaName corresponds to APISchemaName in api/v1alpha1/api.go. | ||
type APISchemaName string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that the values are provider names, wouldn't APISchemaProviderName be more suitable than APISchemaName?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont have a big preference, open for discussion on this
Signed-off-by: Alexa Griffith <[email protected]>
@alexagriffith need to rebase your PR |
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
309fb40
to
2215b9f
Compare
Signed-off-by: Alexa Griffith <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
internal/extproc/watcher_test.go
Outdated
schema: OpenAI | ||
selectedBackendHeaderKey: x-envoy-ai-gateway-selected-backend | ||
modelNameHeaderKey: x-model-name | ||
rules: | ||
- backends: | ||
- name: kserve | ||
weight: 1 | ||
outputSchema: | ||
schema: | ||
schema: OpenAI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update to name now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder why the CI did not complain
internal/extproc/watcher_test.go
Outdated
schema: OpenAI | ||
- name: awsbedrock | ||
weight: 10 | ||
outputSchema: | ||
schema: | ||
schema: AWSBedrock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
internal/extproc/watcher_test.go
Outdated
schema: AWSBedrock | ||
headers: | ||
- name: x-model-name | ||
value: llama3.3333 | ||
- backends: | ||
- name: openai | ||
outputSchema: | ||
schema: | ||
schema: OpenAI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Signed-off-by: Dan Sun <[email protected]>
Signed-off-by: Dan Sun <[email protected]>
#89
changing all instances of inputSchema and outputSchema to
schema
for simplicity.once that was done, the yaml file had a nested structure of schema.schema - schema can have two properties in it, schema and version. this is a bit redundant so schema.schema was changed to schema.name since the value is the name of the schema for a given versioned schema struct