fa_llm 0.1.0 copy "fa_llm: ^0.1.0" to clipboard
fa_llm: ^0.1.0 copied to clipboard

Reusable LLM provider adapters for Fa and related projects. Pure Dart core: OpenAI-compatible, OpenRouter, Ollama, and configuration.

fa_llm #

Reusable LLM provider adapters for Fa and related projects.

Pure Dart core: OpenAI-compatible, OpenRouter, Ollama, and configuration.

Usage #

import 'package:fa_llm/fa_llm.dart';

final provider = openaiProvider(
  baseUrl: 'https://api.openai.com/v1',
  apiKey: 'sk-...',
  model: 'gpt-4o',
);

Features #

  • OpenAI-compatible streaming completions
  • OpenRouter model routing
  • Ollama local inference
  • Provider configuration and resolution
  • Token counting and context window management
0
likes
140
points
352
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Reusable LLM provider adapters for Fa and related projects. Pure Dart core: OpenAI-compatible, OpenRouter, Ollama, and configuration.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http, meta

More

Packages that depend on fa_llm