From f462b9d8fa39e76ae287cc574ce13681646f2d8c Mon Sep 17 00:00:00 2001 From: Oleh Astappiev Date: Tue, 2 Jan 2024 11:30:49 +0100 Subject: [PATCH] feat: update OpenAI models --- .../de/l3s/interweb/connector/openai/OpenaiConnector.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/connectors/OpenaiConnector/src/main/java/de/l3s/interweb/connector/openai/OpenaiConnector.java b/connectors/OpenaiConnector/src/main/java/de/l3s/interweb/connector/openai/OpenaiConnector.java index a5659b19..7591f2ff 100644 --- a/connectors/OpenaiConnector/src/main/java/de/l3s/interweb/connector/openai/OpenaiConnector.java +++ b/connectors/OpenaiConnector/src/main/java/de/l3s/interweb/connector/openai/OpenaiConnector.java @@ -21,8 +21,10 @@ public class OpenaiConnector implements CompletionConnector { private static final Map models = Map.of( "gpt-35-turbo", new UsagePrice(0.0014, 0.0019), "gpt-35-turbo-16k", new UsagePrice(0.003, 0.004), - "gpt-4", new UsagePrice(0.028, 0.056), - "gpt-4-32k", new UsagePrice(0.056, 0.111) + "gpt-35-turbo-1106", new UsagePrice(0.001, 0.002), + "gpt-4-turbo", new UsagePrice(0.010, 0.028), + "gpt-4", new UsagePrice(0.028, 0.055), + "gpt-4-32k", new UsagePrice(0.055, 0.109) ); @Override