v0.21.1

arkohut/pensievev0.21.1Nov 25, 2024by github-actions[bot]

AI Summary

v0.21.1 introduces support for OpenAI-compatible embedding APIs, enabling users to utilize OpenAI's embedding models instead of local or ModelScope alternatives.

Key Highlights

  • Support for OpenAI-compatible embedding API.
  • New configuration examples provided for OpenAI embeddings.

New Features

  • OpenAI-compatible embedding API support.

Full Release Notes

# Support OpenAI Compatible Embeddings api

Here is an example for `config.yml` embeddings part when using OpenAI embeddings:

```yaml
embedding:
  endpoint: https://api.openai.com/v1/embeddings
  model: text-embedding-ada-002
  num_dim: 1536
  token: sk-xxxx
  use_local: false # should mark as false
  use_modelscope: true # will be ignored when use_local is false
```

## What's Changed

* feat(embedding): support openai embedding api by @arkohut in https://github.com/arkohut/pensieve/pull/31

## New Contributors

* @arkohut made their first contribution in https://github.com/arkohut/pensieve/pull/31

**Full Changelog**: https://github.com/arkohut/pensieve/compare/v0.21...v0.21.1