Finish Scriptorium runtime documentation
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
"gitea.maximumdirect.net/eric/scriptorium"
|
||||
)
|
||||
|
||||
const scriptoriumProviderName = "openai-compatible"
|
||||
const scriptoriumProviderName = "scriptorium"
|
||||
|
||||
type ScriptoriumClientConfig struct {
|
||||
ProfileDir string
|
||||
|
||||
@@ -1184,7 +1184,7 @@ func TestRunManifestIncludesPipelineAndLaneDetails(t *testing.T) {
|
||||
func TestRunManifestIncludesRunTimingAndLLMProfiles(t *testing.T) {
|
||||
startedAt := time.Now().Add(-time.Minute).UTC()
|
||||
profiles := []artifacts.LLMProfileManifest{
|
||||
{ID: "default", Provider: "openai-compatible", Model: "model-a"},
|
||||
{ID: "default", Provider: "scriptorium", Model: "model-a"},
|
||||
}
|
||||
|
||||
output, err := New(newRunnerRegistries(t, nil)).Run(context.Background(), RunInput{
|
||||
@@ -1216,9 +1216,9 @@ func TestRunManifestIncludesProfilesReportedByLLMClient(t *testing.T) {
|
||||
output, err := New(newRunnerRegistries(t, nil)).Run(context.Background(), RunInput{
|
||||
Pipeline: resolvedPipeline(),
|
||||
LLMClient: manifestReportingLLMClient{profiles: []artifacts.LLMProfileManifest{
|
||||
{ID: "profile-b", Provider: "openai-compatible", Model: "model-b"},
|
||||
{ID: "profile-a", Provider: "openai-compatible", Model: "model-a"},
|
||||
{ID: "profile-b", Provider: "openai-compatible", Model: "model-b"},
|
||||
{ID: "profile-b", Provider: "scriptorium", Model: "model-b"},
|
||||
{ID: "profile-a", Provider: "scriptorium", Model: "model-a"},
|
||||
{ID: "profile-b", Provider: "scriptorium", Model: "model-b"},
|
||||
}},
|
||||
})
|
||||
if err != nil {
|
||||
@@ -1226,8 +1226,8 @@ func TestRunManifestIncludesProfilesReportedByLLMClient(t *testing.T) {
|
||||
}
|
||||
|
||||
want := []artifacts.LLMProfileManifest{
|
||||
{ID: "profile-a", Provider: "openai-compatible", Model: "model-a"},
|
||||
{ID: "profile-b", Provider: "openai-compatible", Model: "model-b"},
|
||||
{ID: "profile-a", Provider: "scriptorium", Model: "model-a"},
|
||||
{ID: "profile-b", Provider: "scriptorium", Model: "model-b"},
|
||||
}
|
||||
if !reflect.DeepEqual(output.Manifest.LLMProfiles, want) {
|
||||
t.Fatalf("LLMProfiles = %#v, want %#v", output.Manifest.LLMProfiles, want)
|
||||
|
||||
Reference in New Issue
Block a user