Edwin

Results 3 issues of Edwin

Modify openaihosted code, convert some escape sequences code. Make messages parameter so user can include the conversation history to helps retain context of previous conversation.