Download this file
| 1 | {{define "content"}} |
| 2 | <div rst-stack><h1>{{icon .Specialist.Icon}}{{if .Specialist.Name}}{{.Specialist.Name}}{{else}}{{copy .Title}}{{end}}</h1> |
| 3 | {{if .Specialist.Required}}<p>{{copy "specialists.required"}}</p>{{end}} |
| 4 | {{if .Specialist.Archived}}<p>{{copy "specialists.archived"}}</p>{{end}} |
| 5 | {{if .Owner}}<p><a href="/specialists/{{.Specialist.Key}}/edit">{{copy "specialists.edit"}}</a></p>{{end}} |
| 6 | {{if .Specialist.TemplateID}}<p><a href="/specialists/{{.Specialist.Key}}/template-diff">{{copy "templates.diff"}}</a></p>{{end}} |
| 7 | {{template "region:activity" .}} |
| 8 | {{if .Specialist.Role}}<section equipo-card rst-stack><h2>{{copy "nav.settings"}}</h2> |
| 9 | <form method="post" action="/specialists/{{.Specialist.Key}}" equipo-form rst-stack> |
| 10 | <fieldset{{if not .Owner}} disabled{{end}}> |
| 11 | <input type="hidden" name="revision" value="{{.Specialist.Revision}}"> |
| 12 | <label>{{copy "specialist.mode"}}<select rst-input name="model_selection"><option value="best_fit"{{if eq .Specialist.ModelSelection "best_fit"}} selected{{end}}>{{copy "mode.best_fit"}}</option><option value="fixed"{{if eq .Specialist.ModelSelection "fixed"}} selected{{end}}>{{copy "mode.fixed"}}</option></select></label> |
| 13 | <label>{{copy "specialist.provider"}}<input rst-input name="provider" value="{{.Specialist.Provider}}"></label> |
| 14 | <label>{{copy "specialist.family"}}<input rst-input name="model_family" value="{{.Specialist.ModelFamily}}"></label> |
| 15 | <label>{{copy "specialist.model"}}<input rst-input name="model" value="{{.Specialist.Model}}"></label> |
| 16 | <label>{{copy "specialist.concurrent"}}<input rst-input name="max_concurrent" type="number" min="1" step="1" value="{{.Specialist.MaxConcurrent}}" required></label> |
| 17 | <label>{{copy "specialist.instructions"}}<textarea rst-input name="standing_instructions" rows="5">{{.Specialist.StandingInstructions}}</textarea></label> |
| 18 | {{if .Owner}}<button rst-btn="primary" type="submit">{{copy "form.save"}}</button>{{end}} |
| 19 | </fieldset></form></section>{{end}}</div> |
| 20 | {{end}} |
| 21 | |
| 22 | {{define "region:activity"}}<div id="activity" rst-stack {{.Live.Attrs .Topic}}><p>{{copy "activity.working"}}: {{.Work.Working}} · {{copy "activity.queued"}}: {{.Work.Queued}} · {{copy "activity.finished"}}: {{.Work.Finished}}</p>{{if .Work.UsageKnown}}<p>{{copy "usage.counted_turns"}}: {{.Work.CountedTurns}}</p><p>{{copy "usage.tokens"}}: {{.Work.InputTokens}} / {{.Work.OutputTokens}}</p>{{else}}<p>{{copy "usage.unknown"}}</p>{{end}}{{template "task-groups" .}}</div>{{end}} |
| 23 | |