Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 1.72.0 #326

Merged
merged 2 commits into from
Mar 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.71.0"
".": "1.72.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 52
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-4d9d1f8b357a593ea53060e994b0e816f251a68e0325f1548e502d4ab2cfdaa6.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-5760ee26a52aeee7944d22e76d7b6abe0c216d16e42b43dbd9a529be9149344c.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.72.0 (2025-03-01)

Full Changelog: [v1.71.0...v1.72.0](/~https://github.com/julep-ai/python-sdk/compare/v1.71.0...v1.72.0)

### Features

* **api:** api update ([#325](/~https://github.com/julep-ai/python-sdk/issues/325)) ([e6ad6e2](/~https://github.com/julep-ai/python-sdk/commit/e6ad6e26d1b67c9528cfc14799196c31ece3da30))

## 1.71.0 (2025-02-28)

Full Changelog: [v1.70.0...v1.71.0](/~https://github.com/julep-ai/python-sdk/compare/v1.70.0...v1.71.0)
Expand Down
10 changes: 1 addition & 9 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,7 @@ Methods:
Types:

```python
from julep.types import (
ChatInput,
ChatResponse,
Entry,
History,
Message,
Session,
SessionChatResponse,
)
from julep.types import ChatInput, ChatResponse, Entry, History, Session, SessionChatResponse
```

Methods:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "julep"
version = "1.71.0"
version = "1.72.0"
description = "The official Python library for the julep API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/julep/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "julep"
__version__ = "1.71.0" # x-release-please-version
__version__ = "1.72.0" # x-release-please-version
9 changes: 4 additions & 5 deletions src/julep/resources/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
from .._base_client import AsyncPaginator, make_request_options
from ..types.history import History
from ..types.session import Session
from ..types.message_param import MessageParam
from ..types.session_chat_response import SessionChatResponse
from ..types.shared.resource_deleted import ResourceDeleted

Expand Down Expand Up @@ -263,7 +262,7 @@ def chat(
self,
session_id: str,
*,
messages: Iterable[MessageParam],
messages: Iterable[session_chat_params.Message],
connection_pool: object | NotGiven = NOT_GIVEN,
agent: Optional[str] | NotGiven = NOT_GIVEN,
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
Expand All @@ -282,7 +281,7 @@ def chat(
stream: bool | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_choice: Optional[session_chat_params.ToolChoice] | NotGiven = NOT_GIVEN,
tools: Iterable[session_chat_params.Tool] | NotGiven = NOT_GIVEN,
tools: Optional[Iterable[session_chat_params.Tool]] | NotGiven = NOT_GIVEN,
top_p: Optional[float] | NotGiven = NOT_GIVEN,
x_custom_api_key: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -767,7 +766,7 @@ async def chat(
self,
session_id: str,
*,
messages: Iterable[MessageParam],
messages: Iterable[session_chat_params.Message],
connection_pool: object | NotGiven = NOT_GIVEN,
agent: Optional[str] | NotGiven = NOT_GIVEN,
frequency_penalty: Optional[float] | NotGiven = NOT_GIVEN,
Expand All @@ -786,7 +785,7 @@ async def chat(
stream: bool | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
tool_choice: Optional[session_chat_params.ToolChoice] | NotGiven = NOT_GIVEN,
tools: Iterable[session_chat_params.Tool] | NotGiven = NOT_GIVEN,
tools: Optional[Iterable[session_chat_params.Tool]] | NotGiven = NOT_GIVEN,
top_p: Optional[float] | NotGiven = NOT_GIVEN,
x_custom_api_key: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
1 change: 0 additions & 1 deletion src/julep/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from .job_status import JobStatus as JobStatus
from .transition import Transition as Transition
from .chat_response import ChatResponse as ChatResponse
from .message_param import MessageParam as MessageParam
from .doc_embed_params import DocEmbedParams as DocEmbedParams
from .task_list_params import TaskListParams as TaskListParams
from .user_list_params import UserListParams as UserListParams
Expand Down
220 changes: 0 additions & 220 deletions src/julep/types/message_param.py

This file was deleted.

51 changes: 4 additions & 47 deletions src/julep/types/session.py
Original file line number Diff line number Diff line change
@@ -1,53 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Union, Optional
from typing import Optional
from datetime import datetime
from typing_extensions import Literal, TypeAlias
from typing_extensions import Literal

from .._models import BaseModel

__all__ = [
"Session",
"RecallOptions",
"RecallOptionsVectorDocSearch",
"RecallOptionsTextOnlyDocSearch",
"RecallOptionsHybridDocSearch",
]
__all__ = ["Session", "RecallOptions"]


class RecallOptionsVectorDocSearch(BaseModel):
confidence: Optional[float] = None

lang: Optional[str] = None

limit: Optional[int] = None

max_query_length: Optional[int] = None

metadata_filter: Optional[object] = None

mmr_strength: Optional[float] = None

mode: Optional[str] = None

num_search_messages: Optional[int] = None


class RecallOptionsTextOnlyDocSearch(BaseModel):
lang: Optional[str] = None

limit: Optional[int] = None

max_query_length: Optional[int] = None

metadata_filter: Optional[object] = None

mode: Optional[str] = None

num_search_messages: Optional[int] = None


class RecallOptionsHybridDocSearch(BaseModel):
class RecallOptions(BaseModel):
alpha: Optional[float] = None

confidence: Optional[float] = None
Expand All @@ -67,11 +29,6 @@ class RecallOptionsHybridDocSearch(BaseModel):
num_search_messages: Optional[int] = None


RecallOptions: TypeAlias = Union[
RecallOptionsVectorDocSearch, RecallOptionsTextOnlyDocSearch, RecallOptionsHybridDocSearch, None
]


class Session(BaseModel):
id: str

Expand Down
Loading