-
Notifications
You must be signed in to change notification settings - Fork 26
added the functionalities to let the user choose whether to overwrite… #3
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
… the original editorContent or not and to overwrite that if the user wants overwriting to happen
react/src/Chat.tsx
Outdated
| // model: model.model, | ||
| // provider: model.provider, | ||
| // url: model.url, |
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.
这里为啥都comment掉了?如果没有这些 发到server没法更换模型请求吧?
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.
这些当时就是为了test,就后端返回的也没用AI
| # create new session | ||
| prompt = messages[0].get('content', '') | ||
| await db_service.create_chat_session(session_id, model, provider, (prompt[:200] if isinstance(prompt, str) else '')) | ||
| # data = await request.json() |
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.
这里都删掉了是测试用的吗
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.
对对对
| }; | ||
| // const setEditorContentWrapper = (content: string) => { | ||
| // setEditorContent(content); | ||
| // debouncedUpdateFile(content); |
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.
这个debounceUpdateFile()之后还是得加回来吧 这个是保存到磁盘上的file的
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.
那个setEditorContentWrapper我放到parent component里面了因为ChatInterface也需要,现在是个prop
d6c5843 to
9a08aa5
Compare
… the original editorContent or not and to overwrite that if the user wants overwriting to happen