Skip to content

Conversation

@klauern
Copy link

@klauern klauern commented Aug 28, 2025

This enables users to use custom API endpoints and reverse proxies for OpenAI and Groq transcription services, addressing connectivity issues in regions where these services are blocked (resolves #676).

The implementation provides a seamless experience where users can optionally specify custom base URLs in the API settings. When a custom endpoint is configured, the application automatically uses Tauri's native HTTP client to bypass browser CORS restrictions while maintaining the same interface and error handling patterns.

Key Changes

Features Added:

  • Custom API endpoint support for OpenAI and Groq services
  • Native HTTP client fallback for CORS-restricted custom endpoints

Architectural Changes:

  • Dual transcription approach: JavaScript SDK for official endpoints, native Rust HTTP for custom endpoints
  • Conditional API key validation (skip format checks for custom endpoints)
  • Enhanced semantic HTML (fieldset for form grouping)

Bug Fixes:

  • Fixed AAC audio file extension mapping (aac → m4a) for OpenAI compatibility
  • Added minimum file size validation to prevent empty recording API errors
  • Removed debug console logging from production transcription flows

Compatibility:

  • Full backward compatibility with existing configurations
  • Maintains existing error handling and user experience patterns

@braden-w braden-w force-pushed the main branch 2 times, most recently from 24151c8 to 593ca24 Compare September 3, 2025 16:40
This enables users to use custom API endpoints and reverse proxies for
OpenAI and Groq transcription services, addressing connectivity issues
in regions where these services are blocked.

Key changes:
- Add API endpoint override settings for OpenAI and Groq services
- Update UI components to include optional custom base URL fields
- Update transcription services to accept baseURL parameter
- Skip API key format validation when using custom endpoints
- Maintain full backward compatibility with existing configurations

The implementation uses the standard OpenAI/Groq SDK with custom baseURL
configuration, providing seamless integration with compatible endpoints.
@klauern klauern force-pushed the feat/openai-compatible-endpoints branch from 6a4a893 to 8d66b18 Compare October 8, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support for Third Party Whisper API

1 participant