Update openai-embeddings.adoc
Fixed small error in OpenAiChatOptions implementation documentation
This commit is contained in:
committed by
Christian Tzolov
parent
fdd3fbb2f9
commit
4e0434b337
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user