waveterm/waveshell/pkg
Cole Lashley 4ccd62f12a
Add support for proxying open AI chat completion through cloud (#148)
* wrote client code for communicating with lambda cloud

* Added timeout functionality, added check for telemetry enabled for clouod completion, added capability to unset token, other small fixes

* removed stale prints and comments, readded non stream completion for now

* changed json encode to json marshal, also testing my new commit author

* added no telemetry error message and removed check for model in cloud completion

* added defer conn.close() to doOpenAIStreamCompletion, so websocket is always closed

* made a constant for the long telemetry error message

* added endpoint getter, made errors better

* updated scripthaus file to include dev ws endpoint

* added error check for open ai errors

* changed bool condition for better readability

* update some error messages (use error message from server if returned)

* dont blow up the whole response if the server times out.  just write a timeout message

* render streaming errors with a new prompt in openai.tsx (show content and error).  render cmd status 'error' with red x as well.  show exitcode in tooltip of 'x'

* set hadError for errors.  update timeout error to work with new frontend code

* bump client timeout to 5 minutes (longer than server timeout)

---------

Co-authored-by: sawka
2023-12-15 22:20:03 -08:00
..
base SIGKILL will also kill waveshell. clear PendingStateCmds and WaitingCmds on disconnect (remote.go) 2023-11-09 18:29:11 -08:00
binpack add license notice (#37) 2023-10-16 21:31:13 -07:00
cirfile add license notice (#37) 2023-10-16 21:31:13 -07:00
cmdtail remove more go warnings 2023-12-05 10:49:30 -08:00
mpio add license notice (#37) 2023-10-16 21:31:13 -07:00
packet Add support for proxying open AI chat completion through cloud (#148) 2023-12-15 22:20:03 -08:00
server On MacOS allow UserShell to override /bin/bash (#137) 2023-12-14 21:45:27 -08:00
shexec On MacOS allow UserShell to override /bin/bash (#137) 2023-12-14 21:45:27 -08:00
simpleexpand add license notice (#37) 2023-10-16 21:31:13 -07:00
statediff add license notice (#37) 2023-10-16 21:31:13 -07:00