Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CU-865cn6kqn Model capabilities and AIScope simplification. (#214)
* Generic AI client and models with open-ai client impl from https://github.com/aallam/openai-kotlin * type LLM models based on their capabilities and type the operations * add token as parameter to `openAI` fn falling back to env variable * add config as optional parameter * remove old config * adapt to latest changes from main and new java module * have openai be its own module that depends on xef-core. kotlin, scala and java depends on openai module for defaults. xef core does not depend on open ai * fix bug in scala fn name for serialization * make AIClient : AutoCloseable * Rename enum cases * Rename to TEXT_EMBEDDING_ADA_002 * Fix AIClient close expectation * Progress with models * Refactor to have models typed and increase ergonomics * Loading embeddings and tokenizer from huggingface, dynamic loading of local models. Local models can be use in the AI DSL and interleaved with any model. * remove non used repositories * Fix functions model to GPT_3_5_TURBO_FUNCTIONS and example without AI block and manual component construction * remove unused import * Small suggestions * More small suggestions - Replace blocks with equals / single expressions --------- Co-authored-by: Simon Vergauwen <[email protected]> Co-authored-by: Diego E. Alonso <[email protected]>
- Loading branch information