Skip to content

Commit

Permalink
Merge pull request #2483 from Agenta-AI/release/v0.33.5
Browse files Browse the repository at this point in the history
v0.33.5
  • Loading branch information
mmabrouk authored Feb 12, 2025
2 parents a8dae97 + 1bd381f commit 1926be7
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion agenta-backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "agenta_backend"
version = "0.33.4"
version = "0.33.5"
description = ""
authors = ["Mahmoud Mabrouk <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion agenta-cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "agenta"
version = "0.33.4"
version = "0.33.5"
description = "The SDK for agenta is an open-source LLMOps platform."
readme = "README.md"
authors = ["Mahmoud Mabrouk <[email protected]>"]
Expand Down
4 changes: 2 additions & 2 deletions agenta-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agenta-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agenta",
"version": "0.33.4",
"version": "0.33.5",
"private": true,
"engines": {
"node": ">=18"
Expand Down
5 changes: 4 additions & 1 deletion agenta-web/src/components/Playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ import useSWR from "swr"

import {getAgentaApiUrl} from "@/lib/helpers/utils"
import {ListAppsItem} from "@/lib/Types"
import {getCurrentProject} from "@/contexts/project.context"
import {useApps, useAppsData} from "@/contexts/app.context"

const NewPlayground = dynamic(() => import("../NewPlayground/Playground"), {ssr: false})
const OldPlayground = dynamic(() => import("../OldPlayground/Playground"), {ssr: false})

const PlaygroundRouter = () => {
const router = useRouter()
const {projectId} = getCurrentProject()
const appId = router.query.app_id
const {isLoading, data} = useSWR(`${getAgentaApiUrl()}/api/apps`)
const {isLoading, data} = useApps()

const app = useMemo(() => {
return (data || [])?.find((item: ListAppsItem) => item.app_id === appId)
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/contexts/app.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const initialValues: AppContextType = {
setModalInstance: (context) => {},
}

const useApps = (options) => {
export const useApps = (options = {}) => {
const {projectId} = useProjectData()
const {user} = useProfileData()

Expand Down
3 changes: 2 additions & 1 deletion agenta-web/src/services/app-selector/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export const createApp = async ({
templateKey: ServiceType
}) => {
const {selectedOrg} = getOrgValues()
const response = await axios.post(`${getAgentaApiUrl()}/api/apps`, {
const {projectId} = getCurrentProject()
const response = await axios.post(`${getAgentaApiUrl()}/api/apps?project_id=${projectId}`, {
app_name: appName,
template_key: templateKey,
organization_id: selectedOrg?.id,
Expand Down

0 comments on commit 1926be7

Please sign in to comment.