chore: upgrade aisdk-go lib, remove vestigial code (#18577)

This commit is contained in:
Danny Kopping
2025-06-25 17:47:42 +02:00
committed by GitHub
parent e396b06c25
commit 8e0b6f8157
7 changed files with 16 additions and 112 deletions
-15
View File
@@ -3122,21 +3122,6 @@ Write out the current server config as YAML to stdout.`,
return opts
}
type AIProviderConfig struct {
// Type is the type of the API provider.
Type string `json:"type" yaml:"type"`
// APIKey is the API key to use for the API provider.
APIKey string `json:"-" yaml:"api_key"`
// Models is the list of models to use for the API provider.
Models []string `json:"models" yaml:"models"`
// BaseURL is the base URL to use for the API provider.
BaseURL string `json:"base_url" yaml:"base_url"`
}
type AIConfig struct {
Providers []AIProviderConfig `json:"providers,omitempty" yaml:"providers,omitempty"`
}
type SupportConfig struct {
Links serpent.Struct[[]LinkConfig] `json:"links" typescript:",notnull"`
}
+2 -1
View File
@@ -8,9 +8,10 @@ import (
"io"
"github.com/google/uuid"
"github.com/kylecarbs/aisdk-go"
"golang.org/x/xerrors"
"github.com/coder/aisdk-go"
"github.com/coder/coder/v2/codersdk"
)
+2 -1
View File
@@ -10,11 +10,12 @@ import (
"time"
"github.com/google/uuid"
"github.com/kylecarbs/aisdk-go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"
"github.com/coder/aisdk-go"
"github.com/coder/coder/v2/coderd/coderdtest"
"github.com/coder/coder/v2/coderd/database"
"github.com/coder/coder/v2/coderd/database/dbfake"