Skip to content
Open
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
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"enabled": true
}
},
"originGitCommit": "8c63b16b085fcf9b05835232378d834802257e7a",
"originGitCommit": "c61889b06b6ef367f5e7d6aef5f2b8cbca390aa7",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
"sdkVersion": "16.7.1"
}
"sdkVersion": "16.7.2"
}
27 changes: 21 additions & 6 deletions .fern/replay.lock

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

4 changes: 2 additions & 2 deletions code-examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"metadata": {
"language": "python",
"packageName": "phenoml",
"sdkVersion": "16.7.1",
"specCommit": "8c63b16b085fcf9b05835232378d834802257e7a",
"sdkVersion": "16.7.2",
"specCommit": "c61889b06b6ef367f5e7d6aef5f2b8cbca390aa7",
"generatorName": "fernapi/fern-python-sdk"
},
"renderRules": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "phenoml"
version = "16.7.1"
version = "16.7.2"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ client.agent.prompts.patch(
OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
Accepts client_id and client_secret in the request body (JSON or
form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
returns an access token with expiration information.
returns an access token with token expiration information.
</dd>
</dl>
</dd>
Expand Down
4 changes: 2 additions & 2 deletions src/phenoml/authtoken/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_token(
OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
Accepts client_id and client_secret in the request body (JSON or
form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
returns an access token with expiration information.
returns an access token with token expiration information.

Parameters
----------
Expand Down Expand Up @@ -105,7 +105,7 @@ async def get_token(
OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
Accepts client_id and client_secret in the request body (JSON or
form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
returns an access token with expiration information.
returns an access token with token expiration information.

Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions src/phenoml/authtoken/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_token(
OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
Accepts client_id and client_secret in the request body (JSON or
form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
returns an access token with expiration information.
returns an access token with token expiration information.

Parameters
----------
Expand Down Expand Up @@ -139,7 +139,7 @@ async def get_token(
OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
Accepts client_id and client_secret in the request body (JSON or
form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
returns an access token with expiration information.
returns an access token with token expiration information.

Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions src/phenoml/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "phenoml/16.7.1",
"User-Agent": "phenoml/0.0.0-fern-placeholder",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User-Agent left as placeholder

Medium Severity

get_headers now sends User-Agent as phenoml/0.0.0-fern-placeholder instead of the real SDK version. X-Fern-SDK-Version and pyproject.toml correctly say 16.7.2, so the placeholder was not substituted. Every outbound request will advertise an invalid SDK version.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 888d234. Configure here.

"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "phenoml",
"X-Fern-SDK-Version": "16.7.1",
"X-Fern-SDK-Version": "16.7.2",
**(self.get_custom_headers() or {}),
}
token = self._get_token()
Expand Down
4 changes: 2 additions & 2 deletions src/phenoml/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.3",
"info": {
"title": "Phenoml API",
"version": "8c63b16b085fcf9b05835232378d834802257e7a"
"version": "c61889b06b6ef367f5e7d6aef5f2b8cbca390aa7"
},
"x-services": [
{
Expand Down Expand Up @@ -1448,7 +1448,7 @@
"post": {
"operationId": "authtoken_getToken",
"summary": "Request an access token",
"description": "OAuth 2.0 client credentials token endpoint (RFC 6749 \u00a74.4).\nAccepts client_id and client_secret in the request body (JSON or\nform-encoded) or via Basic Auth header (RFC 6749 \u00a72.3.1), and\nreturns an access token with expiration information.\n",
"description": "OAuth 2.0 client credentials token endpoint (RFC 6749 \u00a74.4).\nAccepts client_id and client_secret in the request body (JSON or\nform-encoded) or via Basic Auth header (RFC 6749 \u00a72.3.1), and\nreturns an access token with token expiration information.\n",
"security": [
{
"BasicAuth": []
Expand Down