-
Notifications
You must be signed in to change notification settings - Fork 10
feat: added nilAuth credit system #158
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
base: main
Are you sure you want to change the base?
Conversation
a47a535 to
cd6581c
Compare
ad75ef0 to
c206efa
Compare
* feat: added improved database structure and logging * feat: updated nilauth-credit image hash * feat: unit test corrections * fix: pytests unit and e2e errors * fix: improved and fixed gpt oss CI docker compose file * fix: e2e fixes for responses endpoints * fix: nildb commands
…o_tests chore: add native client to tests
chore: remove etcd in favor of redis
…eless_containers chore: refactor remove unused containers
chore: major nilAI refactor
| """ | ||
| if self.auth_type != AuthType.DELEGATION_TOKEN: | ||
| raise RuntimeError( | ||
| "Invocation token is only available through API key mode only" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this error message. It should probably be "Invocation token via delegation requires auth_type=DELEGATION_TOKEN". Same for the following method as they are currently excluding one each other
| assert server.config == DefaultDelegationTokenServerConfig | ||
| assert hasattr(server, "private_key") | ||
|
|
||
| def test_init_with_custom_config(self, private_key_hex, custom_config): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the custom_config should be passed in the DelegationTokenServer
No description provided.