-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Draft: Add new pre-configured model #138045
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
base: main
Are you sure you want to change the base?
Conversation
jonathan-buttner
left a comment
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.
Looking good, left a few suggestions.
| } | ||
| """; | ||
|
|
||
| // Should we add gp-llm-v2 to the response? |
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.
Naa, you can leave this as is.
| private void assertChatCompletionEndpointExists() { | ||
| var eisEndpoints = getEisEndpoints(); | ||
| assertThat(eisEndpoints.size(), is(1)); | ||
| assertThat(eisEndpoints.size(), is(2)); |
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.
Let's leave this file unchanged, the logic here is just to make sure an endpoint gets created. I think it's fine if we stick with rainbow-sprinkles.
| .filter(endpoint -> endpoint.getService().equals(ElasticInferenceService.NAME)) | ||
| .toList(); | ||
| assertThat(eisEndpoints.size(), is(1)); | ||
| assertThat(eisEndpoints.size(), is(2)); |
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 as above, let's remove these changes.
|
|
||
| // gp-llm-v2 | ||
| public static final String DEFAULT_CHAT_COMPLETION_MODEL_ID_V2 = "gp-llm-v2"; | ||
| public static final String DEFAULT_CHAT_COMPLETION_ENDPOINT_ID_V2 = ".gp-llm-v2"; |
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.
Based on the naming doc I've seen, I believe we want .gp-llm-v2-chat_completion
| } | ||
| } | ||
|
|
||
| // Should we add another test for gp-llm-v2? |
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.
Naa let's leave this as is.
| public static final String DEFAULT_CHAT_COMPLETION_ENDPOINT_ID_V1 = ".rainbow-sprinkles-elastic"; | ||
|
|
||
| // gp-llm-v2 | ||
| public static final String DEFAULT_CHAT_COMPLETION_MODEL_ID_V2 = "gp-llm-v2"; |
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 realize the convention here is DEFAULT_..., I think that's going to get confusing now that we'll have multiple of them.
How about we change this to be:
| public static final String DEFAULT_CHAT_COMPLETION_MODEL_ID_V2 = "gp-llm-v2"; | |
| public static final String GP_LLM_V2 = "gp-llm-v2"; | |
| public static final String GP_LLM_V2_ENDPOINT_ID = ".gp-llm-v2"; |
gradle check?