Sends a prompt to the AI provider and returns the response.
The user's input text
API key for authentication (optional for local providers)
Optionaloptions: { baseUrl?: string; modelName?: string }Additional configuration like baseUrl or modelName
OptionalonProgress: (chunk: string) => voidOptional callback for streaming tokens (not supported by all providers)
Fetches available models from the provider (if supported). Returns an array of model objects { id: string, pricing?: string, tags?: string[] }.
Optionaloptions: { baseUrl?: string }
Google Gemini Provider