()
| 34 | } |
| 35 | |
| 36 | func (a *Adapter) modelID() string { |
| 37 | return strings.TrimSpace(a.cfg.DefaultModel) |
| 38 | } |
| 39 | |
| 40 | func (a *Adapter) Invoke(ctx context.Context, req types.BackendRequest) (types.BackendResponse, error) { |
| 41 | text, _ := req.Input["text"].(string) |