You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-27Lines changed: 22 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,18 @@ Create an `.env` file by copying `.env.example`. You have to fill the following
31
31
> The contract addresses are determined with respect to the chain connected via RPC URL, but you can override it via `COORDINATOR_ADDRESS` environment variable.
32
32
> In any case, you should not need to do this.
33
33
34
+
> [!TIP]
35
+
>
36
+
> You can have multiple environment files, and specify them explicitly with the `-e` argument, e.g.
You can terminate the application from the terminal as usual (e.g. CTRL+C) to quit the node.
@@ -109,20 +120,20 @@ Following the same logic, the Oracle node can read task inputs from Arweave as w
109
120
110
121
### Viewing Tasks
111
122
112
-
You can view the status of a task by its task id:
123
+
You can `view` the details of a task by its task id:
113
124
114
125
```sh
115
126
dria-oracle view <task-id>
116
127
```
117
128
118
-
You can also view the task status updates between blocks with the `tasks` command.
119
-
It accepts `--from` and `--to` arguments to indicate block numbers or tags, defaults from `earliest` block to `latest` block.
129
+
You can also view the task status updates between blocks with the same command, by providing `from` and `to` blocks,
130
+
which defaults from `earliest` block to `latest` block if none is provided.
120
131
121
132
```sh
122
-
dria-oracle tasks# earliest to latest
123
-
dria-oracle tasks --from=100 # 100 to latest
124
-
dria-oracle tasks --to=100 # earliest to 100
125
-
dria-oracle tasks --from=100 --to=200 # 100 to 200
133
+
dria-oracle view# earliest to latest
134
+
dria-oracle view --from=100 # 100 to latest
135
+
dria-oracle view --to=100 # earliest to 100
136
+
dria-oracle view --from=100 --to=200 # 100 to 200
126
137
```
127
138
128
139
### Balance & Rewards
@@ -157,22 +168,6 @@ It mainly takes an input argument, followed by multiple model arguments:
157
168
dria-oracle request "What is 2+2?" gpt-4o-mini phi3:3.8b
158
169
```
159
170
160
-
The `request` command takes the following options:
161
-
162
-
-`--difficulty` for the proof-of-work difficulty for oracles that are responding to this request; the higher this is the more fees it will take to make the request.
163
-
-`--num-gens` number of generations requested.
164
-
-`--num-vals` number of validations required per request.
165
-
166
-
> [!NOTE]
167
-
>
168
-
> Making a request from the Oracle node is mainly for testing purposes, and you are not expected to use this command at all. Furthermore, it is only used to make plaintext requests, instead of larger ones via Arweave or more complex ones via Workflows.
169
-
170
-
There are 3 types of requests:
171
-
172
-
-**String**: simple text
173
-
-**Chat**: an object of the form `{history_id: number, content: string}` which uses a previous task as history; TODO: history > nextTaskId handled?
174
-
-**Workflow**: a stringified Workflow object
175
-
176
171
## Development
177
172
178
173
If you would like to contribute, please create an issue first! To start developing, clone the repository:
0 commit comments