diff --git a/CHANGELOG.md b/CHANGELOG.md index 243992fe..803b8f75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,45 @@ This changelog is managed by towncrier and is compiled at release time. +## [0.4.3](https://github.com/bentoml/openllm/tree/v0.4.3) + +### Features + +- OpenLLM server now provides a helpers endpoint to help easily create new prompt and other utilities in the future + + `/v1/helpers/messages` will format a list of messages into the correct chat messages given the chat model + [#613](https://github.com/bentoml/openllm/issues/613) +- client now have an additional helpers attribute class to work with helpers endpoint + + ```python + client = openllm.HTTPClient() + + prompt = client.helpers.messages( + add_generation_prompt=False, + messages=[ + {'role': 'system', 'content': 'You are acting as Ernest Hemmingway.'}, + {'role': 'user', 'content': 'Hi there!'}, + {'role': 'assistant', 'content': 'Yes?'}, + ], + ) + ``` + + Async variant + + ```python + client = openllm.AsyncHTTPClient() + + prompt = await client.helpers.messages( + add_generation_prompt=False, + messages=[ + {'role': 'system', 'content': 'You are acting as Ernest Hemmingway.'}, + {'role': 'user', 'content': 'Hi there!'}, + {'role': 'assistant', 'content': 'Yes?'}, + ], + ) + ``` + [#615](https://github.com/bentoml/openllm/issues/615) + ## [0.4.2](https://github.com/bentoml/openllm/tree/v0.4.2) ### Changes diff --git a/changelog.d/613.feature.md b/changelog.d/613.feature.md deleted file mode 100644 index 999a39ff..00000000 --- a/changelog.d/613.feature.md +++ /dev/null @@ -1,3 +0,0 @@ -OpenLLM server now provides a helpers endpoint to help easily create new prompt and other utilities in the future - -`/v1/helpers/messages` will format a list of messages into the correct chat messages given the chat model diff --git a/changelog.d/615.feature.md b/changelog.d/615.feature.md deleted file mode 100644 index e32ba1a5..00000000 --- a/changelog.d/615.feature.md +++ /dev/null @@ -1,29 +0,0 @@ -client now have an additional helpers attribute class to work with helpers endpoint - -```python -client = openllm.HTTPClient() - -prompt = client.helpers.messages( - add_generation_prompt=False, - messages=[ - {'role': 'system', 'content': 'You are acting as Ernest Hemmingway.'}, - {'role': 'user', 'content': 'Hi there!'}, - {'role': 'assistant', 'content': 'Yes?'}, - ], -) -``` - -Async variant - -```python -client = openllm.AsyncHTTPClient() - -prompt = await client.helpers.messages( - add_generation_prompt=False, - messages=[ - {'role': 'system', 'content': 'You are acting as Ernest Hemmingway.'}, - {'role': 'user', 'content': 'Hi there!'}, - {'role': 'assistant', 'content': 'Yes?'}, - ], -) -``` diff --git a/external/clojure/package.json b/external/clojure/package.json index 512148e4..111eddc5 100644 --- a/external/clojure/package.json +++ b/external/clojure/package.json @@ -1,6 +1,6 @@ { "name": "openllm-clojure-ui", - "version": "", + "version": "0.4.3", "description": "OpenLLM Clojure UI", "repository": { "url": "git@github.com:bentoml/OpenLLM.git", diff --git a/openllm-node/package.json b/openllm-node/package.json index ccf8ba4d..7a74453f 100644 --- a/openllm-node/package.json +++ b/openllm-node/package.json @@ -1,6 +1,6 @@ { "name": "@bentoml/openllm-node", - "version": "0.4.3.dev0", + "version": "0.4.3", "description": "NodeJS library for OpenLLM", "type": "module", "repository": { diff --git a/openllm-python/CHANGELOG.md b/openllm-python/CHANGELOG.md index 243992fe..803b8f75 100644 --- a/openllm-python/CHANGELOG.md +++ b/openllm-python/CHANGELOG.md @@ -18,6 +18,45 @@ This changelog is managed by towncrier and is compiled at release time. +## [0.4.3](https://github.com/bentoml/openllm/tree/v0.4.3) + +### Features + +- OpenLLM server now provides a helpers endpoint to help easily create new prompt and other utilities in the future + + `/v1/helpers/messages` will format a list of messages into the correct chat messages given the chat model + [#613](https://github.com/bentoml/openllm/issues/613) +- client now have an additional helpers attribute class to work with helpers endpoint + + ```python + client = openllm.HTTPClient() + + prompt = client.helpers.messages( + add_generation_prompt=False, + messages=[ + {'role': 'system', 'content': 'You are acting as Ernest Hemmingway.'}, + {'role': 'user', 'content': 'Hi there!'}, + {'role': 'assistant', 'content': 'Yes?'}, + ], + ) + ``` + + Async variant + + ```python + client = openllm.AsyncHTTPClient() + + prompt = await client.helpers.messages( + add_generation_prompt=False, + messages=[ + {'role': 'system', 'content': 'You are acting as Ernest Hemmingway.'}, + {'role': 'user', 'content': 'Hi there!'}, + {'role': 'assistant', 'content': 'Yes?'}, + ], + ) + ``` + [#615](https://github.com/bentoml/openllm/issues/615) + ## [0.4.2](https://github.com/bentoml/openllm/tree/v0.4.2) ### Changes diff --git a/package.json b/package.json index ec4f0c99..b904cec7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bentoml/openllm-monorepo", - "version": "0.4.3.dev0", + "version": "0.4.3", "description": "OpenLLM: Operating LLMs in production", "author": "Aaron Pham <29749331+aarnphm@users.noreply.github.com>", "license": "Apache-2.0",