Skip to content

Allow interacting with OpenAI-compatible API's #683

Answered by zainhoda
ytjhai asked this question in Q&A
Discussion options

You must be logged in to vote

This is already possible by passing in an OpenAI compatible client like this:

class MyVanna(ChromaDB_VectorStore, OpenAI_Chat):
    def __init__(self, config=None):
        ChromaDB_VectorStore.__init__(self, config=config)
        OpenAI_Chat.__init__(self, client=MyOpenAIClient(...), config=config) # Make sure to put your OpenAI-compatible client here

vn = MyVanna(config={'model': 'gpt-4-...'})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ytjhai
Comment options

@ilyasabdut
Comment options

@ytjhai
Comment options

Answer selected by ytjhai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #661 on October 23, 2024 13:32.