Skip to content

Conversation

@AntMoraisElastic
Copy link

  • Have you signed the contributor license agreement?
  • Have you followed the contributor guidelines?
  • If submitting code, have you built your formula locally prior to submission with gradle check?
  • If submitting code, is your pull request against main? Unless there is a good reason otherwise, we prefer pull requests against main and will backport as needed.
  • If submitting code, have you checked that your submission is for an OS and architecture that we support?
  • If you are submitting this code for a class then read our policy for that.

Copy link
Contributor

@jonathan-buttner jonathan-buttner left a 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?
Copy link
Contributor

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));
Copy link
Contributor

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));
Copy link
Contributor

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";
Copy link
Contributor

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?
Copy link
Contributor

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";
Copy link
Contributor

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:

Suggested change
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";

@jonathan-buttner
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants