mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-06-11 00:13:12 +00:00
6345df3136
New tool supporting MiniMax music generation, ElevenLabs sound effects, and Suno music (stub). Registers Suno as a valid provider type. - create_audio.go: tool definition with provider chain for music, direct ElevenLabs for SFX - create_audio_minimax.go: MiniMax music API (/music_generation) - create_audio_elevenlabs.go: ElevenLabs sound effects API (/v1/sound-generation) - create_audio_suno.go: stub for future Suno integration - Add ProviderSuno type to store and gateway registration
16 lines
489 B
Go
16 lines
489 B
Go
package tools
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/nextlevelbuilder/goclaw/internal/providers"
|
|
)
|
|
|
|
// callSunoMusicGen generates music via the Suno API.
|
|
// Suno must be registered as an LLM provider with provider_type "suno".
|
|
func callSunoMusicGen(ctx context.Context, apiKey, apiBase, model, prompt string, params map[string]any) ([]byte, *providers.Usage, error) {
|
|
// TODO: Implement Suno music generation
|
|
return nil, nil, fmt.Errorf("suno music generation not yet implemented")
|
|
}
|