The code changes in `aigc.go` and `types.go` refactor the AI connector handling in the `DSL` struct. The `Connector` field now accepts an optional `moapi` prefix, allowing for the selection of Moapi models. If the `Connector` field starts with `moapi`, the code initializes a new Moapi instance with the specified model. Additionally, the `Connector` field is now marked as `omitempty` in the `types.go` file. This update improves the flexibility of the AI connector configuration and enables the use of Moapi models in the AI system. |
||
|---|---|---|
| .. | ||
| aigc.go | ||
| aigc_test.go | ||
| load.go | ||
| load_test.go | ||
| process.go | ||
| process_test.go | ||
| types.go | ||