|
@@ -12965,7 +12965,8 @@ Blockly.Python.set_pinyin_dict_create_with_items_insert = function (block) {
|
|
|
var c = this.getFieldValue("KEY" + b);
|
|
|
a[b] = c + block.getFieldValue("toneADD" + b + b);
|
|
|
}
|
|
|
- a = "{" + a.join(", ") + "}";
|
|
|
+ console.log(a.join(" "))
|
|
|
+ a = `"${a.join(" ")}"` ;
|
|
|
return [a, Blockly.Python.ORDER_ATOMIC]
|
|
|
};
|
|
|
|
|
@@ -13744,7 +13745,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
var code = ``;
|
|
@@ -13773,7 +13774,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
// Blockly.Python.addVariable("TextContent", `TextContent = ""`, true)
|
|
@@ -13808,7 +13809,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
var code = `gptInit.get_image_to_text(${text},${content})`;
|
|
@@ -13838,7 +13839,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
var code = `gptInit.get_text_to_voice(${text})`;
|
|
@@ -13881,7 +13882,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
var code = `gptInit.get_voice_to_text(${text})`;
|
|
@@ -13911,7 +13912,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
var code = `gptInit.get_post_chatgpt(${text})`;
|
|
@@ -14008,7 +14009,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
var code = `gptInit.get_post_AI_Intelligence(${text},${content})`
|
|
@@ -14041,7 +14042,7 @@ sys.path.append("/root/")`
|
|
|
from CocoPi import GPTrequest
|
|
|
except:
|
|
|
import sys
|
|
|
- sys.path.append("/home/drivers/pylib/")
|
|
|
+ sys.path.append("/root/preset/drivers/pylib/")
|
|
|
from GPTrequest import GPTrequest`
|
|
|
Blockly.Python.definitions_['v831_import_CocoPi_Gpt_init'] = `gptInit = GPTrequest()`
|
|
|
var code = `gptInit.cocopi_chatGpt_AI_loading_more(${text},${content})`
|