yeeef commited on
Commit
3abf420
1 Parent(s): 1849a87

migrate to sync dep

Browse files
Files changed (2) hide show
  1. .gitignore +5 -1
  2. OpenAIChatGPT4.py +6 -4
.gitignore CHANGED
@@ -158,4 +158,8 @@ cython_debug/
158
  # and can be added to the global gitignore or merged into this file. For a more nuclear
159
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
  .idea/
161
- .*cache*/
 
 
 
 
 
158
  # and can be added to the global gitignore or merged into this file. For a more nuclear
159
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
  .idea/
161
+ .*cache*/
162
+
163
+
164
+ # auto-generated by flows, all synced modules will be ignored by default
165
+ FLOW_MODULE_ID
OpenAIChatGPT4.py CHANGED
@@ -1,8 +1,10 @@
1
- import os
 
 
 
 
2
 
3
- from flows.flow_verse import load_class
4
- OpenAIChatAtomicFlow_repository_id = os.environ.get("OpenAIChatAtomicFlow")
5
- OpenAIChatAtomicFlow = load_class(OpenAIChatAtomicFlow_repository_id, "OpenAIChatAtomicFlow")
6
 
7
  class OpenAIChatGPT4(OpenAIChatAtomicFlow):
8
  def __init__(self, **kwargs):
 
1
+ dependencies = [
2
+ {"url": "martinjosifoski/OpenAIChatAtomicFlow", "revision": "main"},
3
+ ]
4
+ from flows import flow_verse
5
+ flow_verse.sync_dependencies(dependencies)
6
 
7
+ from flow_modules.martinjosifoski.OpenAIChatAtomicFlow import OpenAIChatAtomicFlow
 
 
8
 
9
  class OpenAIChatGPT4(OpenAIChatAtomicFlow):
10
  def __init__(self, **kwargs):