Update openai-embeddings.adoc

Fixed small error in OpenAiChatOptions implementation documentation
This commit is contained in:
Abdoulaye Ndiaye
2024-02-16 11:18:27 +01:00
committed by Christian Tzolov
parent fdd3fbb2f9
commit 4e0434b337

View File

@@ -157,7 +157,7 @@ Next, create an `OpenAiEmbeddingClient` instance and use it to compute the simil
var openAiApi = new OpenAiApi(System.getenv("OPENAI_API_KEY"));
var embeddingClient = new OpenAiEmbeddingClient(openAiApi)
.withDefaultOptions(OllamaOptions.create()
.withDefaultOptions(OpenAiChatOptions.build()
.withModel("text-embedding-ada-002")
.withUser("user-6")
.build());