mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
Downgraded to Stac 0.10 and Initialized Stac
This commit is contained in:
@@ -2,6 +2,8 @@ import 'package:apidash_core/apidash_core.dart';
|
||||
import 'package:apidash_design_system/apidash_design_system.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:genai/genai.dart';
|
||||
import 'package:stac/stac.dart';
|
||||
import 'models/models.dart';
|
||||
import 'providers/providers.dart';
|
||||
import 'services/services.dart';
|
||||
@@ -10,6 +12,7 @@ import 'app.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Stac.initialize();
|
||||
|
||||
//Load all LLMs
|
||||
// await LLMManager.fetchAvailableLLMs();
|
||||
|
||||
@@ -54,7 +54,11 @@ class ResponsePaneHeader extends ConsumerWidget {
|
||||
onPressed: () {
|
||||
final model = ref.watch(selectedRequestModelProvider
|
||||
.select((value) => value?.httpResponseModel));
|
||||
showCustomDialog(context, model?.formattedBody ?? "");
|
||||
if (model == null) return;
|
||||
final body = (model.sseOutput?.isNotEmpty ?? false)
|
||||
? model.sseOutput?.join("\n")
|
||||
: model.formattedBody ?? model.body;
|
||||
showCustomDialog(context, body ?? "");
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.generating_tokens,
|
||||
|
||||
Reference in New Issue
Block a user