open ai service
This commit is contained in:
19
books_flutter/lib/config/api_config.dart
Normal file
19
books_flutter/lib/config/api_config.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
/// API Configuration
|
||||
///
|
||||
/// Replace YOUR_GEMINI_API_KEY_HERE with your actual Google Gemini API key
|
||||
/// Get your API key from: https://makersuite.google.com/app/apikey
|
||||
///
|
||||
/// Replace YOUR_OPENAI_API_KEY_HERE with your actual OpenAI API key
|
||||
/// The default endpoint is set to http://localhost:8317/v1/chat/completions
|
||||
/// You can configure your OpenAI endpoint below if needed
|
||||
class ApiConfig {
|
||||
// TODO: Replace with your actual Gemini API key
|
||||
static const String geminiApiKey = 'YOUR_GEMINI_API_KEY_HERE';
|
||||
|
||||
static const String openaiApiKey = 'sk-openai-api-key';
|
||||
|
||||
// OpenAI API endpoint (default: http://localhost:8317/v1/chat/completions)
|
||||
static const String openaiBaseUrl = 'http://192.168.102.158:8317';
|
||||
|
||||
static const String openaiModel = 'gemini-3-pro-image';
|
||||
}
|
||||
Reference in New Issue
Block a user