-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: AzureOpenAI error when loading embedding model #1599
Labels
question
Further information is requested
Comments
Looks to me like its derived from the wrong base class. Could try to derive it from |
I can confirm that changing the base class to
and similar, so |
KevinHuSh
added a commit
that referenced
this issue
Jul 19, 2024
### What problem does this PR solve? #1599 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
KevinHuSh
added a commit
that referenced
this issue
Sep 26, 2024
### What problem does this PR solve? #1599 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
Halfknow
pushed a commit
to Halfknow/ragflow
that referenced
this issue
Nov 11, 2024
### What problem does this PR solve? infiniflow#1599 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
Halfknow
pushed a commit
to Halfknow/ragflow
that referenced
this issue
Nov 11, 2024
### What problem does this PR solve? infiniflow#1599 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your problem
Hi, I already have deployed some models and the ada and larg3 embedding models, however, when entering the API-key and endpoint, I'm receiving an error message that the encoding method was not implemented. As far as I know support was added by issue #1512 .
Upon closer insection I saw in the embedding_model.py that there is no encode method for the azure openai class, or was that added somewhere else?
Here the azure class directly inherits from Base
class AzureEmbed(Base): def __init__(self, key, model_name, **kwargs): self.client = AzureOpenAI(api_key=key, azure_endpoint=kwargs["base_url"], api_version="2024-02-01") self.model_name = model_name
And here the Base
`class Base(ABC):
def init(self, key, model_name):
pass
The text was updated successfully, but these errors were encountered: