|
@@ -10,17 +10,22 @@ import {
|
|
|
const nodeDefault: NodeDefault<HttpNodeType> = {
|
|
|
defaultValue: {
|
|
|
variables: [],
|
|
|
- method: Method.get,
|
|
|
- url: '',
|
|
|
+ method: Method.post,
|
|
|
+ url: ['localhost', '1.95.78.201'].includes(location.hostname) ? 'http://1.95.78.201:30001/call' : 'http://10.76.102.168.:5006/call',
|
|
|
authorization: {
|
|
|
type: AuthorizationType.none,
|
|
|
config: null,
|
|
|
},
|
|
|
- headers: '',
|
|
|
+ headers: 'accept:application/json\nContent-Type:application/json',
|
|
|
params: '',
|
|
|
body: {
|
|
|
- type: BodyType.none,
|
|
|
- data: [],
|
|
|
+ type: BodyType.rawText,
|
|
|
+ data: <any>[
|
|
|
+ {
|
|
|
+ type: 'text',
|
|
|
+ value: '{\n "input": {\n "text": ""\n },\n "parameters": {\n "candidate_labels": []\n }\n}',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
timeout: {
|
|
|
max_connect_timeout: 0,
|