Skip to content

Commit

Permalink
修正達哥翻譯
Browse files Browse the repository at this point in the history
  • Loading branch information
estea8968 committed Sep 25, 2024
1 parent 7a55781 commit 6fcd5d9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google" value="notranslate">
<link rel="shortcut icon" href="static/favicon.ico">
<title>OSEP_scratch 1130924</title>
<title>OSEP_scratch 1130925</title>

</head>
<body>
Expand Down
13 changes: 8 additions & 5 deletions app/lib.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -411362,7 +411362,7 @@ var scratch3_davinci = /*#__PURE__*/function () {
key: "sendDavinci",
value: function () {
var _sendDavinci = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(args) {
var AUTH_HEADER, THREAD_URL, dd, H, M, S, d, m, Y, CREATE_RUN_DATA, mythread, loop_n, MSG_URL, msg_response, RUN_URL, run_response, run_staus, required_action, TOOL_OUTPUTS, _iterator2, _step2, toolCall, FUNC_NAME, ARGS, PLUGINAPI_URL, OUTPUT, SUBMIT_TOOL_OUTPUT_RUN_URL, TOOL_OUTPUTS_DATA, responseMsgResponse, RESPONSE_MSG, index_http, one, two, url_text, open_img;
var AUTH_HEADER, THREAD_URL, dd, H, M, S, d, m, Y, CREATE_RUN_DATA, mythread, loop_n, MSG_URL, msg_response, RUN_URL, run_response, run_staus, required_action, TOOL_OUTPUTS, _iterator2, _step2, toolCall, FUNC_NAME, ARGS, PLUGINAPI_URL, OUTPUT, SUBMIT_TOOL_OUTPUT_RUN_URL, TOOL_OUTPUTS_DATA, responseMsgResponse, RESPONSE_MSG, index_http, one, two;

return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
Expand Down Expand Up @@ -411610,9 +411610,12 @@ var scratch3_davinci = /*#__PURE__*/function () {

if (index_http > 0) {
one = this.ai_anaswer.split('(');
two = one[1].split(')');
url_text = two[0];
open_img = window.open(url_text);
two = '';

for (i = 1; i < one.length; i++) {
two = one[i].split(')');
window.open(two[0]);
}
}

this.API_KEY = '';
Expand Down Expand Up @@ -415600,7 +415603,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thread_id_error", function() { return thread_id_error; });
var name = {
'en': 'davinci',
'zh-tw': '答哥AI'
'zh-tw': '達哥AI'
};
var sendDavinci = {
'en': 'send message [VALUE] to davinci',
Expand Down
2 changes: 1 addition & 1 deletion app/lib.min.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions source/scratch-vm/src/extensions/scratch3_davinci/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,12 @@ class scratch3_davinci {
const index_http= this.ai_anaswer.indexOf('http');
if(index_http>0){
const one=this.ai_anaswer.split('(');
const two=one[1].split(')');
const url_text=two[0];
const open_img=window.open(url_text);
let two = '';
for(i=1;i<one.length;i++){
two=one[i].split(')');
window.open(two[0]);
}

}
this.API_KEY='';
this.ASSISTANT_ID='';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const name = {
'en': 'davinci',
'zh-tw': '答哥AI'
'zh-tw': '達哥AI'
};

export const sendDavinci = {
Expand Down

0 comments on commit 6fcd5d9

Please sign in to comment.