Skip to content

Commit eadbd5a

Browse files
chore: drop --server now that --ui is there
1 parent affa1b7 commit eadbd5a

File tree

5 files changed

+1
-383
lines changed

5 files changed

+1
-383
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ jobs:
3030
with:
3131
cache: false
3232
go-version: "1.22"
33-
- name: Build UI
34-
if: matrix.os == 'ubuntu-22.04'
35-
run: make build-ui
36-
shell: bash
3733
- name: Validate
3834
if: matrix.os == 'ubuntu-22.04'
3935
run: make validate

.goreleaser.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ dist: releases
22
snapshot:
33
name_template: '{{ trimprefix .Summary "v" }}'
44

5-
before:
6-
hooks:
7-
# Generate UI assets to embedded in binaries
8-
- make build-ui
9-
105
builds:
116
- id: default
127
binary: gptscript

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
.DEFAULT_GOAL := build
22

3-
all: build-ui build
4-
5-
build-ui:
6-
$(MAKE) -C ui
7-
rm -rf static/ui
8-
mkdir -p static/ui/_nuxt
9-
touch static/ui/placeholder static/ui/_nuxt/_placeholder
10-
cp -rp ui/.output/public/* static/ui/
3+
all: build
114

125
build-exe:
136
GOOS=windows go build -o bin/gptscript.exe -tags "${GO_TAGS}" .

pkg/cli/gptscript.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"github.com/gptscript-ai/gptscript/pkg/mvl"
2727
"github.com/gptscript-ai/gptscript/pkg/openai"
2828
"github.com/gptscript-ai/gptscript/pkg/runner"
29-
"github.com/gptscript-ai/gptscript/pkg/server"
3029
"github.com/gptscript-ai/gptscript/pkg/system"
3130
"github.com/gptscript-ai/gptscript/pkg/types"
3231
"github.com/gptscript-ai/gptscript/pkg/version"
@@ -58,7 +57,6 @@ type GPTScript struct {
5857
Assemble bool `usage:"Assemble tool to a single artifact, saved to --output" hidden:"true" local:"true"`
5958
ListModels bool `usage:"List the models available and exit" local:"true"`
6059
ListTools bool `usage:"List built-in tools and exit" local:"true"`
61-
Server bool `usage:"Start server" local:"true"`
6260
ListenAddress string `usage:"Server listen address" default:"127.0.0.1:0"`
6361
Chdir string `usage:"Change current working directory" short:"C"`
6462
Daemon bool `usage:"Run tool as a daemon" local:"true" hidden:"true"`
@@ -366,18 +364,6 @@ func (r *GPTScript) Run(cmd *cobra.Command, args []string) (retErr error) {
366364

367365
ctx := cmd.Context()
368366

369-
if r.Server {
370-
s, err := server.New(&server.Options{
371-
ListenAddress: r.ListenAddress,
372-
GPTScript: gptOpt,
373-
})
374-
if err != nil {
375-
return err
376-
}
377-
defer s.Close(true)
378-
return s.Start(ctx)
379-
}
380-
381367
gptScript, err := gptscript.New(gptOpt)
382368
if err != nil {
383369
return err

0 commit comments

Comments
 (0)