Use prompt-defined structured output contracts
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
||||
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/appconfig"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/core/config"
|
||||
"gitea.maximumdirect.net/eric/audita/v4/internal/framework/responseschema"
|
||||
ck "go.maximumdirect.net/configkit"
|
||||
)
|
||||
|
||||
@@ -63,7 +62,7 @@ func TestRolesShareBackendCapacityAndReleaseAfterCancellation(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
request := adapterRequest(responseschema.CorrectionSetKey)
|
||||
request := adapterRequest("proposal")
|
||||
done := make(chan error, 1)
|
||||
go func() {
|
||||
_, err := proposal.CompleteStructured(context.Background(), request, &map[string]any{})
|
||||
@@ -113,7 +112,7 @@ func TestDistinctBackendsHaveIndependentCapacity(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
request := adapterRequest(responseschema.CorrectionSetKey)
|
||||
request := adapterRequest("proposal")
|
||||
done := make(chan error, 2)
|
||||
go func() {
|
||||
_, err := first.CompleteStructured(context.Background(), request, &map[string]any{})
|
||||
|
||||
Reference in New Issue
Block a user