Skip to content

Commit

Permalink
Release 0.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 2, 2023
1 parent 07aee22 commit 3e01634
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "superagent-py"
version = "v0.1.12"
version = "v0.1.13"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/superagent/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "superagent-py",
"X-Fern-SDK-Version": "v0.1.12",
"X-Fern-SDK-Version": "v0.1.13",
}
token = self._get_token()
if token is not None:
Expand Down
1 change: 1 addition & 0 deletions src/superagent/types/app_models_request_datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class AppModelsRequestDatasource(pydantic.BaseModel):
name: str
description: str
type: str
content: typing.Optional[str]
url: typing.Optional[str]
metadata: typing.Optional[typing.Dict[str, typing.Any]]

Expand Down
20 changes: 18 additions & 2 deletions src/superagent/types/llm_provider.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# This file was auto-generated by Fern from our API Definition.

import typing_extensions
import enum
import typing

LlmProvider = typing_extensions.Literal["OPENAI"]
T_Result = typing.TypeVar("T_Result")


class LlmProvider(str, enum.Enum):
"""
An enumeration.
"""

OPENAI = "OPENAI"
AZURE_OPENAI = "AZURE_OPENAI"

def visit(self, openai: typing.Callable[[], T_Result], azure_openai: typing.Callable[[], T_Result]) -> T_Result:
if self is LlmProvider.OPENAI:
return openai()
if self is LlmProvider.AZURE_OPENAI:
return azure_openai()
2 changes: 1 addition & 1 deletion src/superagent/types/prisma_models_api_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PrismaModelsApiUser(pydantic.BaseModel):
llms: typing.Optional[typing.List[PrismaModelsLlm]]
datasources: typing.Optional[typing.List[PrismaModelsDatasource]]
tools: typing.Optional[typing.List[PrismaModelsTool]]
worflows: typing.Optional[typing.List[PrismaModelsWorkflow]]
workflows: typing.Optional[typing.List[PrismaModelsWorkflow]]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Expand Down
1 change: 1 addition & 0 deletions src/superagent/types/prisma_models_datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class PrismaModelsDatasource(pydantic.BaseModel):

id: str
name: str
content: typing.Optional[str]
description: typing.Optional[str]
url: typing.Optional[str]
type: DatasourceType
Expand Down

0 comments on commit 3e01634

Please sign in to comment.