Skip to content
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

Update interface.ts #910

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adwaiythakur20
Copy link

The import statement for ChatCompletionRequestMessage is unnecessary if it's not used within this file. The IConfig interface has a required property openai_api_key, but api is optional. It might be preferable to make openai_api_key optional as well for more flexibility. The User interface defines chatMessage as an array of ChatCompletionRequestMessage, but it seems like ChatCompletionRequestMessage is an import rather than a defined interface or type. There are no comments to explain the purpose of each interface or any other parts of the code.

The import statement for ChatCompletionRequestMessage is unnecessary if it's not used within this file.
The IConfig interface has a required property openai_api_key, but api is optional. It might be preferable to make openai_api_key optional as well for more flexibility.
The User interface defines chatMessage as an array of ChatCompletionRequestMessage, but it seems like ChatCompletionRequestMessage is an import rather than a defined interface or type.
There are no comments to explain the purpose of each interface or any other parts of the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant