opencode-cursor-agent/internal/logic/chat/models_logic.go

34 lines
616 B
Go

// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package chat
import (
"context"
"cursor-api-proxy/internal/svc"
"cursor-api-proxy/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type ModelsLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewModelsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ModelsLogic {
return &ModelsLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *ModelsLogic) Models() (resp *types.ModelsResponse, err error) {
// todo: add your logic here and delete this line
return
}