From 81f4613571299624b5fdecbd97818b317bdd8172 Mon Sep 17 00:00:00 2001 From: Thomas Vitale Date: Mon, 29 Jan 2024 23:31:10 +0100 Subject: [PATCH] Use new OpenAI options concept Signed-off-by: Thomas Vitale --- .../chat-models-openai/src/main/resources/application.yml | 5 +++-- .../prompts-basics-openai/src/main/resources/application.yml | 5 +++-- .../src/main/resources/application.yml | 5 +++-- .../src/main/resources/application.yml | 5 +++-- .../output-parsers-openai/src/main/resources/application.yml | 5 +++-- .../src/main/resources/application.yml | 3 ++- 6 files changed, 17 insertions(+), 11 deletions(-) diff --git a/01-chat-models/chat-models-openai/src/main/resources/application.yml b/01-chat-models/chat-models-openai/src/main/resources/application.yml index d71eb41..bb82fa7 100644 --- a/01-chat-models/chat-models-openai/src/main/resources/application.yml +++ b/01-chat-models/chat-models-openai/src/main/resources/application.yml @@ -3,8 +3,9 @@ spring: openai: api-key: ${OPENAI_API_KEY} chat: - model: gpt-3.5-turbo - temperature: 0.7 + options: + model: gpt-3.5-turbo + temperature: 0.7 threads: virtual: enabled: true diff --git a/02-prompts/prompts-basics-openai/src/main/resources/application.yml b/02-prompts/prompts-basics-openai/src/main/resources/application.yml index d71eb41..bb82fa7 100644 --- a/02-prompts/prompts-basics-openai/src/main/resources/application.yml +++ b/02-prompts/prompts-basics-openai/src/main/resources/application.yml @@ -3,8 +3,9 @@ spring: openai: api-key: ${OPENAI_API_KEY} chat: - model: gpt-3.5-turbo - temperature: 0.7 + options: + model: gpt-3.5-turbo + temperature: 0.7 threads: virtual: enabled: true diff --git a/02-prompts/prompts-messages-openai/src/main/resources/application.yml b/02-prompts/prompts-messages-openai/src/main/resources/application.yml index d71eb41..bb82fa7 100644 --- a/02-prompts/prompts-messages-openai/src/main/resources/application.yml +++ b/02-prompts/prompts-messages-openai/src/main/resources/application.yml @@ -3,8 +3,9 @@ spring: openai: api-key: ${OPENAI_API_KEY} chat: - model: gpt-3.5-turbo - temperature: 0.7 + options: + model: gpt-3.5-turbo + temperature: 0.7 threads: virtual: enabled: true diff --git a/02-prompts/prompts-templates-openai/src/main/resources/application.yml b/02-prompts/prompts-templates-openai/src/main/resources/application.yml index d71eb41..bb82fa7 100644 --- a/02-prompts/prompts-templates-openai/src/main/resources/application.yml +++ b/02-prompts/prompts-templates-openai/src/main/resources/application.yml @@ -3,8 +3,9 @@ spring: openai: api-key: ${OPENAI_API_KEY} chat: - model: gpt-3.5-turbo - temperature: 0.7 + options: + model: gpt-3.5-turbo + temperature: 0.7 threads: virtual: enabled: true diff --git a/03-output-parsers/output-parsers-openai/src/main/resources/application.yml b/03-output-parsers/output-parsers-openai/src/main/resources/application.yml index d71eb41..bb82fa7 100644 --- a/03-output-parsers/output-parsers-openai/src/main/resources/application.yml +++ b/03-output-parsers/output-parsers-openai/src/main/resources/application.yml @@ -3,8 +3,9 @@ spring: openai: api-key: ${OPENAI_API_KEY} chat: - model: gpt-3.5-turbo - temperature: 0.7 + options: + model: gpt-3.5-turbo + temperature: 0.7 threads: virtual: enabled: true diff --git a/04-embedding-models/embedding-models-openai/src/main/resources/application.yml b/04-embedding-models/embedding-models-openai/src/main/resources/application.yml index 3cc4199..03ec5a1 100644 --- a/04-embedding-models/embedding-models-openai/src/main/resources/application.yml +++ b/04-embedding-models/embedding-models-openai/src/main/resources/application.yml @@ -3,7 +3,8 @@ spring: openai: api-key: ${OPENAI_API_KEY} embedding: - model: text-embedding-ada-002 + options: + model: text-embedding-ada-002 threads: virtual: enabled: true