Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/lmstudio/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestNamespaceConnectionRemoteCall(t *testing.T) {

// Test with unloadModel which is also supported by the mock
params := map[string]interface{}{"identifier": "mock-model-0.5B"}
result, err = nc.RemoteCall("unloadModel", params)
_, err = nc.RemoteCall("unloadModel", params)
if err != nil {
t.Errorf("RemoteCall for unloadModel failed: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/lmstudio/lmstudio_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package lmstudio
import (
"context"
"encoding/json"
"errors"
"fmt"
"math/rand"
"sync"
"time"
"errors"
)

// LMStudioClient represents a client for LM Studio service
Expand Down
2 changes: 1 addition & 1 deletion pkg/lmstudio/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (l *loggerStruct) Trace(format string, v ...interface{}) {
}
}

// Logger is the interface for logging, it can be overriden by the client code
// Logger is the interface for logging, it can be overridden by the client code
type Logger interface {
SetLevel(level LogLevel)
Error(format string, v ...interface{})
Expand Down
6 changes: 3 additions & 3 deletions pkg/lmstudio/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ func captureOutput(f func()) string {
// Redirect log output to a buffer
var buf bytes.Buffer
log.SetOutput(&buf)

// Execute the function that produces log output
f()

// Reset log output to stderr
log.SetOutput(os.Stderr)

return buf.String()
}

Expand Down