Skip to content

Commit

Permalink
feat: add codegpt header value when making calls to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
carlrobertoh committed Dec 7, 2023
1 parent 425b0cd commit 33ba3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ checkstyle {
}

dependencies {
implementation("ee.carlrobert:llm-client:0.1.0")
implementation("ee.carlrobert:llm-client:0.1.1")
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void testAzureChatCompletionCall() {
"/openai/deployments/TEST_DEPLOYMENT_ID/chat/completions");
assertThat(request.getUri().getQuery()).isEqualTo("api-version=TEST_API_VERSION");
assertThat(request.getHeaders().get("Api-key").get(0)).isEqualTo("TEST_API_KEY");
assertThat(request.getHeaders().get("X-application-name").get(0)).isEqualTo("CODEGPT");
assertThat(request.getBody())
.extracting("messages")
.isEqualTo(
Expand Down

0 comments on commit 33ba3a0

Please sign in to comment.