Closed nanotronic closed 7 months ago
@nanotronic right now it's not configurable.
Here is the value (for OpenAI): https://github.com/lgrammel/modelfusion/blob/main/src/model-provider/openai/OpenAITextEmbeddingModel.ts#L94
You could change it such that it's part of OpenAITextEmbeddingModelSettings
and defaults to 2048
.
Then you could set it when you create the OpenAITextEmbeddingModel
with your Azure config.
Would you mind sending a PR?
Yes, I will.
PR included in v0.89.0
. Thanks!
I am trying to get the pdf-chat-terminal example working with Azure. I have created two api configurations for this. One for embedding and the other for chatting. It looks like this:
Unfortunately I get the following error
Too many inputs. The max number of inputs is 16...
.Is there a possibility to set this parameter?
Thanks in advance