Comments (3)
Yeah, it'd be possible now with the streaming API / it does give some feedback that correlates with the states of the request like once the src block shows up, the server is necessarily connected
More work could be done via adding verbose flags to curl, and parsing the output. For the moment, I only intend to do the streaming implementation, since I think that gives it significantly more feedback than it had before.
from org-assistant.
The latest version has org-assistant-mode
which is a minor mode that changes the mode line to including a queue that shows the individual requests.
It shows the first four letters of the UUID of each request in the [].
Below is the part of the mode-line-format I mentioned:
(:eval (concat "[" (s-join "," (--map (substring it 0 4) org-assistant--inflight-request)) "]") )
Closing since I think this is already complete
from org-assistant.
Yes although the mode line only displays what jobs are currently running. It would be more useful to know exactly what stage they are in. E.g. connecting to API, waiting for reply, etc.
I'd imagine the mode line would then say something like [foo123(C)] for connecting, for instance.
It's less of an issue once the streaming branch is merged, but it could still be useful in case you have a slow internet connection/DNS issues.
But I'm quite unfamiliar with the interface for making web requests, do you have access to any of that information when making a request?
from org-assistant.
Related Issues (20)
- Streaming output HOT 7
- Cancel all tasks HOT 2
- Enable markdown mode by default? HOT 1
- org-assistant-response-completed-hook should be called with text and prompt ID as arguments HOT 1
- Streaming id location HOT 3
- Noweb bug HOT 5
- Evaluating thread while streaming HOT 4
- SRC block escaped by org syntax HOT 3
- Evaluating a block that's currently streaming HOT 2
- Too much is escaped HOT 2
- Evaluating while queries are in queue HOT 2
- Errors when adding to queue HOT 2
- Undo and streaming HOT 4
- Accessing text field while it's being streamed in HOT 4
- Bug related to freezing prompt & cancelling blocks HOT 4
- Doesn't support indented org blocks HOT 1
- Freezing & overlay issue HOT 4
- /tmp memory leak HOT 2
- Noweb doesn't work for system prompts HOT 2
- Set model used per-block
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-assistant.