File size: 6,870 Bytes
209e602
 
 
ce4ba97
209e602
 
ce4ba97
209e602
324571d
 
 
38d7c80
 
324571d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38d7c80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
324571d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce4ba97
324571d
 
 
 
 
 
ce4ba97
324571d
 
 
 
 
 
 
 
 
ce4ba97
324571d
 
 
 
 
 
 
 
 
38d7c80
 
324571d
 
 
ce4ba97
209e602
 
 
324571d
 
209e602
c118ba3
209e602
 
324571d
209e602
 
324571d
 
209e602
 
 
324571d
209e602
324571d
38d7c80
209e602
38d7c80
209e602
38d7c80
 
 
 
 
 
 
 
209e602
 
324571d
209e602
 
324571d
209e602
38d7c80
 
 
209e602
 
38d7c80
 
11841ee
324571d
11841ee
ce4ba97
209e602
38d7c80
209e602
324571d
 
11841ee
ce4ba97
 
209e602
 
 
 
 
 
38d7c80
 
 
11841ee
209e602
324571d
ce4ba97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
_id: gpt4free
author: Anton Breslavskii | https://github.com/breslavsky
description: Free generative AI service providers
readme: Small internal refactor
title: GPT for free
url: https://huggingface.co/PiperMy/Node-Packages/resolve/main/gpt4free.yaml
version: 12
nodes:
  ask_llm_agent_gpt4free:
    _id: ask_llm_agent_gpt4free
    arrange:
      x: 480
      y: 130
    category:
      _id: llm_agents
      title: en=Language Agents;ru=Языковые агенты
    execution: deferred
    inputs:
      instructions:
        order: 1
        title: en=Instructions;ru=Инструкции
        type: string
        multiline: true
        placeholder: en=Leave empty if you don't need it;ru=Оставьте пустым если не требуется
      question:
        order: 2
        title: en=Question;ru=Вопрос
        type: string
        required: true
        multiline: true
        default: What is your name?
      model:
        order: 3
        title: en=Model;ru=Модель
        type: string
        default: gpt-4o-mini
        enum:
          - gpt-3.5-turbo
          - gpt-4
          - gpt-4o
          - gpt-4o-mini
          - o1
          - o1-mini
          - o3-mini
          - gigachat
          - meta-ai
          - llama-2-7b
          - llama-3-8b
          - llama-3-70b
          - llama-3.1-8b
          - llama-3.1-70b
          - llama-3.1-405b
          - llama-3.2-1b
          - llama-3.2-3b
          - llama-3.2-11b
          - llama-3.2-90b
          - llama-3.3-70b
          - mixtral-8x7b
          - mixtral-8x22b
          - mistral-nemo
          - mixtral-small-24b
          - hermes-3
          - phi-3.5-mini
          - phi-4
          - wizardlm-2-7b
          - wizardlm-2-8x22b
          - gemini-exp
          - gemini-1.5-flash
          - gemini-1.5-pro
          - gemini-2.0
          - gemini-2.0-flash
          - gemini-2.0-flash-thinking
          - gemini-2.0-pro
          - claude-3-haiku
          - claude-3-sonnet
          - claude-3-opus
          - claude-3.5-sonnet
          - claude-3.7-sonnet
          - claude-3.7-sonnet-thinking
          - reka-core
          - blackboxai
          - blackboxai-pro
          - command-r
          - command-r-plus
          - command-r7b
          - command-a
          - qwen-1.5-7b
          - qwen-2-72b
          - qwen-2-vl-7b
          - qwen-2.5-72b
          - qwen-2.5-coder-32b
          - qwen-2.5-1m
          - qwen-2-5-max
          - qwq-32b
          - qvq-72b
          - pi
          - deepseek-chat
          - deepseek-v3
          - deepseek-r1
          - janus-pro-7b
          - grok-3
          - grok-3-r1
          - sonar
          - sonar-pro
          - sonar-reasoning
          - sonar-reasoning-pro
          - r1-1776
          - nemotron-70b
          - dbrx-instruct
          - glm-4
          - mini_max
          - yi-34b
          - dolphin-2.6
          - dolphin-2.9
          - airoboros-70b
          - lzlv-70b
          - minicpm-2.5
          - tulu-3-1-8b
          - tulu-3-70b
          - tulu-3-405b
          - olmo-1-7b
          - olmo-2-13b
          - olmo-2-32b
          - olmo-4-synthetic
          - lfm-40b
          - evil
    outputs:
      answer:
        title: en=Answer;ru=Ответ
        type: string
      model:
        title: en=Model;ru=Модель
        type: string
      provider:
        title: en=Provider;ru=Провайдер
        type: string
    package: gpt4free
    script: |
      export async function run({ inputs }) {

          const { NextNode } = DEFINITIONS;
          const { model = 'gpt-4o-mini', instructions, question = 'Are you AI?' } = inputs;

          const { data } = await httpClient({
              method: 'post',
              url: `http://${NODE_ENV === 'test' ? '0.0.0.0:8080' : 'gpt4free:1337'}/v1/chat/completions`,
              timeout: 60000,
              data: {
                  model,
                  stream: false,
                  messages: [
                      ...(!!instructions ? [{
                          role: 'system',
                          content: instructions
                      }] : []),
                      ...[
                          {
                              role: 'user',
                              content: question
                          }
                      ]
                  ]
              },
              headers: {
                  'Content-Type': 'application/json',
              }
          });

          const { model: used, provider, choices: [{ message: { content: answer } }] } = data;
          return NextNode.from({ outputs: { model: used, provider, answer } });
      }
    source: catalog
    title: en=Ask LLM agent for free;ru=Спросить LLM агента бесп.
    version: 2
  generate_image_gpt4free:
    _id: generate_image_gpt4free
    arrange:
      x: 130
      y: 80
    category:
      _id: generate_images
      title: en=Generate images;ru=Генерация изображений
    environment: {}
    execution: deferred
    inputs:
      prompt:
        order: 1
        title: en=Prompt;ru=Подсказка
        type: string
        required: true
        multiline: true
        default: superhero game card
      model:
        order: 2
        title: en=Model;ru=Модель
        type: string
        default: flux-dev
        enum:
          - sdxl-turbo
          - sd-3.5
          - flux
          - flux-pro
          - flux-dev
          - flux-schnell
          - dall-e-3
          - midjourney
    outputs:
      image:
        title: en=Image;ru=Изображение
        type: image
      provider:
        title: en=Provider;ru=Провайдер
        type: string
      model:
        title: en=Model;ru=Модель
        type: string
    package: gpt4free
    script: |
      // https://github.com/nomic-ai/gpt4all

      export async function run({ inputs }) {

          const { NextNode } = DEFINITIONS;
          const { model = 'flux-dev', prompt = 'superhero game card' } = inputs;

          const { data } = await httpClient({
              method: 'post',
              url: `http://${NODE_ENV === 'test' ? '0.0.0.0:8080' : 'gpt4free:1337'}/v1/images/generate`,
              timeout: 60000,
              data: {
                  model,
                  prompt,
                  response_format: 'b64_json'
              },
              headers: {
                  'Content-Type': 'application/json',
              }
          });

          const { model: used, provider, data: [{ b64_json }] } = data;
          return NextNode.from({ outputs: { model: used, provider, image: Buffer.from(b64_json, 'base64') } });
      }
    source: catalog
    title: en=Generate image for free;ru=Генерация изобр. бесп.
    version: 6