File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 2525 ports :
2626 - 8001:8000
2727 env :
28- CHROMA_SERVER_AUTH_CREDENTIALS : ' test-token'
29- CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER : ' chromadb.auth.token.TokenConfigServerAuthCredentialsProvider'
30- CHROMA_SERVER_AUTH_PROVIDER : ' chromadb.auth.token.TokenAuthServerProvider'
28+ CHROMA_SERVER_AUTHN_CREDENTIALS : ' test-token'
29+ CHROMA_SERVER_AUTHN_PROVIDER : ' chromadb.auth.token_authn.TokenAuthenticationServerProvider'
3130
3231 steps :
3332 - name : Checkout
Original file line number Diff line number Diff line change @@ -178,9 +178,8 @@ services:
178178 ports :
179179 - ' 8000:8000'
180180 environment :
181- - CHROMA_SERVER_AUTH_CREDENTIALS=test-token
182- - CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER=chromadb.auth.token.TokenConfigServerAuthCredentialsProvider
183- - CHROMA_SERVER_AUTH_PROVIDER=chromadb.auth.token.TokenAuthServerProvider
181+ - CHROMA_SERVER_AUTHN_CREDENTIALS=test-token
182+ - CHROMA_SERVER_AUTHN_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider
184183
185184 ...
186185```
Original file line number Diff line number Diff line change @@ -11,6 +11,5 @@ services:
1111 ports :
1212 - ' 8001:8000'
1313 environment :
14- CHROMA_SERVER_AUTH_CREDENTIALS : ' test-token'
15- CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER : ' chromadb.auth.token.TokenConfigServerAuthCredentialsProvider'
16- CHROMA_SERVER_AUTH_PROVIDER : ' chromadb.auth.token.TokenAuthServerProvider'
14+ CHROMA_SERVER_AUTHN_CREDENTIALS : ' test-token'
15+ CHROMA_SERVER_AUTHN_PROVIDER : ' chromadb.auth.token_authn.TokenAuthenticationServerProvider'
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public static function inferTypeFromMessage(string $message): string
2727 return match (true ) {
2828 str_contains ($ message , 'NotFoundError ' ) => 'NotFoundError ' ,
2929 str_contains ($ message , 'AuthorizationError ' ) => 'AuthorizationError ' ,
30+ str_contains ($ message , 'Forbidden ' ) => 'AuthorizationError ' ,
3031 str_contains ($ message , 'UniqueConstraintError ' ) => 'UniqueConstraintError ' ,
3132 str_contains ($ message , 'ValueError ' ) => 'ValueError ' ,
3233 str_contains ($ message , 'dimensionality ' ) => 'DimensionalityError ' ,
You can’t perform that action at this time.
0 commit comments