Open EdikxXx opened 13 hours ago
Hey!
This is extremely interesting, especially about "sometimes".
The catch is, client_call_details.metadata
is a special Metadata object and should be never be a list
.
But from your traceback I can see that there is calling of two grpc interceptors.
Is that possible you have added some kind of interceptor that is interfering with ours?
If not, I need some more context to repoduce.
I sometimes get a
TypeError: list indices must be integers or slices, not str
when I call run from model object. This is my code:From the traceback I see that the error is called from the
run
method. For example, I callget_text_embeddings
withtext = "Станки зубообрабатывающие"
andmodel_name = "query"
, and I get the following traceback:"I think it relates to the calling of metadata attributes through the variable
RETRY_KIND_METADATA_KEY
. SinceRETRY_KIND_METADATA_KEY
is a string, it could be causing this error.