@@ -1,17 +1,16 @@
|
||||
package openai_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
. "github.com/sashabaranov/go-openai"
|
||||
"github.com/sashabaranov/go-openai/internal/test/checks"
|
||||
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/sashabaranov/go-openai"
|
||||
"github.com/sashabaranov/go-openai/internal/test/checks"
|
||||
)
|
||||
|
||||
const testFineTuneModelID = "fine-tune-model-id"
|
||||
@@ -35,7 +34,7 @@ func TestAzureListModels(t *testing.T) {
|
||||
|
||||
// handleListModelsEndpoint Handles the list models endpoint by the test server.
|
||||
func handleListModelsEndpoint(w http.ResponseWriter, _ *http.Request) {
|
||||
resBytes, _ := json.Marshal(ModelsList{})
|
||||
resBytes, _ := json.Marshal(openai.ModelsList{})
|
||||
fmt.Fprintln(w, string(resBytes))
|
||||
}
|
||||
|
||||
@@ -58,7 +57,7 @@ func TestAzureGetModel(t *testing.T) {
|
||||
|
||||
// handleGetModelsEndpoint Handles the get model endpoint by the test server.
|
||||
func handleGetModelEndpoint(w http.ResponseWriter, _ *http.Request) {
|
||||
resBytes, _ := json.Marshal(Model{})
|
||||
resBytes, _ := json.Marshal(openai.Model{})
|
||||
fmt.Fprintln(w, string(resBytes))
|
||||
}
|
||||
|
||||
@@ -90,6 +89,6 @@ func TestDeleteFineTuneModel(t *testing.T) {
|
||||
}
|
||||
|
||||
func handleDeleteFineTuneModelEndpoint(w http.ResponseWriter, _ *http.Request) {
|
||||
resBytes, _ := json.Marshal(FineTuneModelDeleteResponse{})
|
||||
resBytes, _ := json.Marshal(openai.FineTuneModelDeleteResponse{})
|
||||
fmt.Fprintln(w, string(resBytes))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user