mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
update modelid to the available davinci-002 on Azure Open AI
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ public class Example04_CombineLLMPromptsAndNativeCode {
|
||||
OpenAIAsyncClient client = SamplesConfig.getClient();
|
||||
|
||||
TextCompletion textCompletion = SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build();
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public class Example05_InlineFunctionDefinition {
|
||||
OpenAIAsyncClient client = SamplesConfig.getClient();
|
||||
|
||||
TextCompletion textCompletion = SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build();
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ public class Example06_TemplateLanguage {
|
||||
|
||||
Kernel kernel = SKBuilders.kernel()
|
||||
.withDefaultAIService(SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build())
|
||||
.build();
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ public class Example08_RetryHandler {
|
||||
String prompt = "{{$input}}\nSummarize the content above.";
|
||||
|
||||
TextCompletion textCompletion = SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build();
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public class Example09_FunctionTypes {
|
||||
OpenAIAsyncClient client = SamplesConfig.getClient();
|
||||
|
||||
TextCompletion textCompletion = SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build();
|
||||
|
||||
|
||||
+2
-2
@@ -186,11 +186,11 @@ public class Example13_ConversationSummarySkill {
|
||||
|
||||
private static Kernel initializeKernel(OpenAIAsyncClient client) {
|
||||
TextCompletion textCompletion = SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build();
|
||||
|
||||
return SKBuilders.kernel()
|
||||
.withAIService("text-davinci-003", textCompletion, true, TextCompletion.class).build();
|
||||
.withAIService("davinci-002", textCompletion, true, TextCompletion.class).build();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ public class Example15_MemorySkill {
|
||||
|
||||
TextCompletion textCompletionService =
|
||||
SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build();
|
||||
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ public class Example51_StepwisePlanner {
|
||||
} else {
|
||||
textCompletion = SKBuilders.textCompletion()
|
||||
.withOpenAIClient(client)
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ public class SequentialPlanner_AnswerQuestion {
|
||||
OpenAIAsyncClient client = SamplesConfig.getClient();
|
||||
var kernel = SKBuilders.kernel()
|
||||
.withDefaultAIService(SKBuilders.textCompletion()
|
||||
.withModelId("text-davinci-003")
|
||||
.withModelId("davinci-002")
|
||||
.withOpenAIClient(client)
|
||||
.build())
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user