-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add ainize doc #57
Add ainize doc #57
Conversation
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.
LGTM with comments Thanks!
조금 자연스러워 보이는 표현들을 추천드렸습니다.
src/ainize.ts
Outdated
return AinModule.getInstance().createAccount(); | ||
} | ||
|
||
/** | ||
* Login of the ainize using AI Network account private key. |
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.
Login to ainize using ~ 이 조금 더 자연스러운 표현 같습니다!
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.
done!
src/ainize.ts
Outdated
async login(privateKey: string) { | ||
this.ain.setDefaultAccount(privateKey); | ||
await this.handler.connect(); | ||
console.log('login success! address:', this.ain.getAddress()); | ||
} | ||
|
||
/** | ||
* Logout of the ainize. |
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.
Logout from ainize?
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.
done!
src/ainize.ts
Outdated
@@ -48,11 +60,17 @@ export default class Ainize { | |||
} | |||
|
|||
// FIXME(yoojin): add config type and change param type. | |||
/** | |||
* Deploy AI model container. | |||
* @param {deployConfig} deployConfig Set configuration for container. modelName, billingConfig, etc. |
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.
Configurations for setting container.
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.
done!
src/ainize.ts
Outdated
/** | ||
* Deploy AI model container. | ||
* @param {deployConfig} deployConfig Set configuration for container. modelName, billingConfig, etc. | ||
* @returns {Model} Control object of deployed model. |
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.
Deployed Model Object?
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.
done!
src/ainize.ts
Outdated
/** | ||
* Get deployed model. | ||
* @param modelName | ||
* @returns {Model} Control object of deployed model. |
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.
ditto
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.
done!
Thanks for the review! |
ainize.ts 에 tsdoc 추가했습니다.