Skip to content
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

chore: update openai service to official deployment, and disable test due to outage #1619

Merged
merged 1 commit into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.scalactic.Equality

trait OpenAIAPIKey {
lazy val openAIAPIKey: String = sys.env.getOrElse("OPENAI_API_KEY", Secrets.OpenAIApiKey)
lazy val openAIServiceName: String = "m3test11"
lazy val openAIServiceName: String = "synapseml-openai"
}

class OpenAICompletionSuite extends TransformerFuzzing[OpenAICompletion] with OpenAIAPIKey with Flaky {
Expand Down Expand Up @@ -68,7 +68,7 @@ class OpenAICompletionSuite extends TransformerFuzzing[OpenAICompletion] with Op
testCompletion(promptCompletion, promptDF)
}

test("Batch Prompt") {
ignore("Batch Prompt") {
testCompletion(batchPromptCompletion, batchPromptDF)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
" from notebookutils.visualization import display\n",
"\n",
"# Fill in the following lines with your service information\n",
"service_name = \"M3Test11\"\n",
"service_name = \"synapseml-openai\"\n",
"deployment_name = \"text-davinci-001\"\n",
"location = \"eastus\"\n",
"key = find_secret(\"openai-api-key\") # please replace this with your key as a string\n",
"\n",
"assert key is not None and service_name is not None"
Expand Down Expand Up @@ -512,4 +511,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}