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

add --conversation_id, normalize method, do_action #7

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

pjq
Copy link
Collaborator

@pjq pjq commented Feb 18, 2023

No description provided.

xiaogpt.py Outdated
"--conversation_id",
dest="conversation_id",
type=str,
default="c379851d-fbd4-479e-a716-dddc379fbxxx",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let us make default empty string.
then user do not need to give a conversation_id also work

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

xiaogpt.py Outdated
@@ -33,7 +33,7 @@ def parse_cookie_string(cookie_string):


class MiGPT:
def __init__(self, hardware):
def __init__(self, hardware, conversation_id):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conversation_id = "" default value

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wutaijieing
Copy link

wutaijieing commented Feb 19, 2023

conversation_id 需要如何获取?刚接触,请教下

new:人傻了,已经知道了,原来是openai页面的new chat 那个id

@yihong0618
Copy link
Owner

我稍微改动了下,感谢。

@yihong0618 yihong0618 merged commit 0a0d8ee into yihong0618:main Feb 20, 2023
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.

None yet

3 participants