Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

[Fix]: Show newlines in the prompt and response code blocks (#558)

David Birks10e91656939e
diff --git a/src/client/README.md b/src/client/README.md
index 110b18f5..377bd0e9 100644
--- a/src/client/README.md
+++ b/src/client/README.md
@@ -87,7 +87,7 @@ You can also use the [OpenLIT Helm Chart](https://github.com/openlit/helm/tree/m
```sh
npm install
```
-4. **Configure Environemnt Variables**
+4. **Configure Environment Variables**
Below are the commands to set environment variables if needed during manual setup. Replace `<value>` with your actual configuration:
```sh
diff --git a/src/client/package-lock.json b/src/client/package-lock.json
index 07728e95..0272b18b 100644
--- a/src/client/package-lock.json
+++ b/src/client/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "openlit",
- "version": "1.11.8",
+ "version": "1.11.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "openlit",
- "version": "1.11.8",
+ "version": "1.11.9",
"dependencies": {
"@anthropic-ai/sdk": "^0.21.1",
"@clickhouse/client": "^1.1.0",
diff --git a/src/client/package.json b/src/client/package.json
index ce4c26e1..411c401f 100644
--- a/src/client/package.json
+++ b/src/client/package.json
@@ -1,6 +1,6 @@
{
"name": "openlit",
- "version": "1.11.8",
+ "version": "1.11.9",
"private": true,
"scripts": {
"dev": "next dev",
@@ -83,4 +83,4 @@
"prisma": {
"seed": "node prisma/seed.js"
}
-}
\ No newline at end of file
+}
diff --git a/src/client/src/components/(playground)/request/request-details.tsx b/src/client/src/components/(playground)/request/request-details.tsx
index 20436d9a..164d97f1 100644
--- a/src/client/src/components/(playground)/request/request-details.tsx
+++ b/src/client/src/components/(playground)/request/request-details.tsx
@@ -39,7 +39,7 @@ const TagItem = ({
const CodeItem = ({ label, text }: { label: string; text: string }) => (
<div className="flex flex-col space-y-3 mt-4">
<span className="text-sm text-stone-500 font-medium">{label} : </span>
- <code className="text-sm inline-flex text-left items-center bg-stone-950 text-stone-200 rounded-md p-4">
+ <code className="text-sm inline-flex text-left items-center bg-stone-950 text-stone-200 rounded-md p-4 whitespace-pre-wrap">
{text}
</code>
</div>