Skip to content

Commit 24fedc3

Browse files
committed
update models
1 parent b973c4a commit 24fedc3

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

conductor-client/src/main/java/com/netflix/conductor/sdk/workflow/def/tasks/LlmChatComplete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public LlmChatComplete llmProvider(String llmProvider) {
9393
/**
9494
* Sets the model to use for chat completion.
9595
*
96-
* @param model the model identifier (e.g., "gpt-4", "gpt-3.5-turbo", "claude-3-opus")
96+
* @param model the model identifier (e.g., "gpt-4", "gpt-4-mini", "claude-3-opus")
9797
* @return this task for method chaining
9898
*/
9999
public LlmChatComplete model(String model) {

conductor-client/src/main/java/com/netflix/conductor/sdk/workflow/def/tasks/LlmTextComplete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public LlmTextComplete llmProvider(String llmProvider) {
8080
/**
8181
* Sets the model to use for text completion.
8282
*
83-
* @param model the model identifier (e.g., "gpt-4", "gpt-3.5-turbo", "claude-3-opus")
83+
* @param model the model identifier (e.g., "gpt-4", "gpt-4-mini", "claude-3-opus")
8484
* @return this task for method chaining
8585
*/
8686
public LlmTextComplete model(String model) {

examples/src/main/java/io/orkes/conductor/sdk/examples/agentic/AgenticExamplesRunner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ private TaskResult executeLlmChatTask(Task task) {
10631063

10641064
String prompt = (String) task.getInputData().get("prompt");
10651065
// Always use the appropriate model for the configured provider
1066-
String model = USE_ANTHROPIC ? "claude-3-haiku-20240307" : "gpt-4o-mini";
1066+
String model = USE_ANTHROPIC ? "claude-haiku-4-5" : "gpt-4o-mini";
10671067
String systemPrompt = (String) task.getInputData().getOrDefault("systemPrompt", "You are a helpful assistant.");
10681068

10691069
try {
@@ -1126,7 +1126,7 @@ private TaskResult executeLlmResponseFormatterTask(Task task) {
11261126
"The user asked: %s\n\nI called the '%s' function and got this result: %s\n\nPlease provide a natural, helpful response to the user based on this information.",
11271127
query, functionCalled, functionResult
11281128
);
1129-
String model = USE_ANTHROPIC ? "claude-3-haiku-20240307" : "gpt-4o-mini";
1129+
String model = USE_ANTHROPIC ? "claude-haiku-4-5" : "gpt-4o-mini";
11301130
String response = USE_ANTHROPIC ? callClaudeChat(prompt, model, "You are a helpful assistant that formats function results into natural responses.")
11311131
: callOpenAiChat(prompt, model, "You are a helpful assistant that formats function results into natural responses.");
11321132
result.setStatus(TaskResult.Status.COMPLETED);
@@ -1311,7 +1311,7 @@ private Map<String, Object> callClaudeFunctionSelection(String query) throws IOE
13111311
);
13121312

13131313
Map<String, Object> requestBody = new HashMap<>();
1314-
requestBody.put("model", "claude-3-haiku-20240307");
1314+
requestBody.put("model", "claude-haiku-4-5");
13151315
requestBody.put("max_tokens", 500);
13161316
requestBody.put("system", "You are a helpful assistant. Use the available tools to answer the user's question.");
13171317
requestBody.put("messages", List.of(Map.of("role", "user", "content", query)));

tests/src/test/java/io/orkes/conductor/client/http/PromptClientTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ void testPromptWithModels() {
140140
IntegrationApiUpdate details = new IntegrationApiUpdate();
141141
details.setDescription("gpt-4 model");
142142
integrationClient.saveIntegrationApi("openai", "gpt-4", details);
143-
integrationClient.saveIntegrationApi("openai", "gpt-3.5-turbo", details);
143+
integrationClient.saveIntegrationApi("openai", "gpt-4-mini", details);
144144

145-
List<String> models = List.of("openai:gpt-4", "openai:gpt-3.5-turbo");
145+
List<String> models = List.of("openai:gpt-4", "openai:gpt-4-mini");
146146

147147
promptClient.savePrompt(PROMPT_NAME, PROMPT_DESCRIPTION, PROMPT_TEMPLATE_V1, models, null, false);
148148

@@ -217,7 +217,7 @@ void testPromptTest() {
217217
promptText,
218218
variables,
219219
"openai", // Requires OpenAI integration to be configured
220-
"gpt-3.5-turbo",
220+
"gpt-4-mini",
221221
0.7f,
222222
0.9f,
223223
List.of("END"));

0 commit comments

Comments
 (0)