palm_api 0.0.1 copy "palm_api: ^0.0.1" to clipboard
palm_api: ^0.0.1 copied to clipboard

discontinued

A Dart client for interacting with the PaLM API, allowing developers to build generative AI applications.

example/palm_api_example.dart

import 'package:palm_api/palm_api.dart';

Future<void> main() async {
// Instantiate the client
  final palm = TextService(apiKey: 'YOUR_API_KEY');

// Generate a message
  final response = await palm.generateText(
    model: PalmModel.textBison001.name, // or 'text-bison-001'
    prompt: TextPrompt(text: 'Hello'),
  );

// Print the candidates
  response.candidates.forEach(print);
}
3
likes
0
pub points
23%
popularity

Publisher

verified publisherleoafarias.com

A Dart client for interacting with the PaLM API, allowing developers to build generative AI applications.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, http

More

Packages that depend on palm_api