mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 04:16:06 +00:00
fix: add debug log when OAuth provider skips direct audio API path
This commit is contained in:
1 parent
61e6ff2ab2
commit
4f3664674b
1 file changed
+3
@@ -62,6 +62,9 @@ func (t *ReadAudioTool) callProvider(ctx context.Context, cp credentialProvider,
|
||||
|
||||
// Provider-specific paths require API credentials; skip when cp is nil
|
||||
// (e.g. OAuth-based providers that don't expose static keys).
|
||||
if cp == nil && (strings.HasPrefix(providerName, "gemini") || strings.HasPrefix(providerName, "openai")) {
|
||||
slog.Info("read_audio: no API credentials, falling back to Chat API", "provider", providerName)
|
||||
}
|
||||
if cp != nil {
|
||||
// Gemini: use File API (inlineData doesn't work for audio).
|
||||
if strings.HasPrefix(providerName, "gemini") {
|
||||
|
||||
Reference in new issue
Block a user