Skip to content

fix typing for embedding_fn in postgres provider#1047

Merged
jlowin merged 2 commits intoPrefectHQ:mainfrom
webcoderz:webcoderz-memory-type-fix
Jan 31, 2025
Merged

fix typing for embedding_fn in postgres provider#1047
jlowin merged 2 commits intoPrefectHQ:mainfrom
webcoderz:webcoderz-memory-type-fix

Conversation

@webcoderz
Copy link
Contributor

for some reason OpenAIEmbeddings function isnt a Callable like ChatOpenAI provider , so if providing a custon non openAIEmbedding function (base_url , etc.) this would fail validation, it passed if you didnt have to change anything, setting it to OpenAIEmbeddings allows you to customize it

for some reason OpenAIEmbeddings function isnt a Callable like ChatOpenAI provider , so if providing a custon non openAIEmbedding function (base_url , etc.) this would fail validation, it passed if you didnt have to change anything, setting it to OpenAIEmbeddings allows you to customize it
@webcoderz webcoderz changed the title fix typing for embedding_fn fix typing for embedding_fn in postgres provider Jan 31, 2025
@jlowin jlowin merged commit 66263d3 into PrefectHQ:main Jan 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants