Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 12, 2024
1 parent 14d73d7 commit 3c48690
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 12
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-eccf2e27a91b41489a70fdbe1253c1142da0f2f2d1e84267b037d6b6af0b26dd.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-ca8da7974057afac39ab3f38dbd707d4db9ea11fa15d95061c82642ca4c79ef8.yml
32 changes: 16 additions & 16 deletions tests/api_resources/test_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_method_chat_overload_1(self, client: Writer) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
)
assert_matches_type(Chat, chat, path=["response"])

Expand All @@ -40,7 +40,7 @@ def test_method_chat_with_all_params_overload_1(self, client: Writer) -> None:
"name": "name",
}
],
model="palmyra-x-002-32k",
model="model",
max_tokens=0,
n=0,
stop=["string", "string", "string"],
Expand All @@ -59,7 +59,7 @@ def test_raw_response_chat_overload_1(self, client: Writer) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
)

assert response.is_closed is True
Expand All @@ -76,7 +76,7 @@ def test_streaming_response_chat_overload_1(self, client: Writer) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -95,7 +95,7 @@ def test_method_chat_overload_2(self, client: Writer) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
)
chat_stream.response.close()
Expand All @@ -110,7 +110,7 @@ def test_method_chat_with_all_params_overload_2(self, client: Writer) -> None:
"name": "name",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
max_tokens=0,
n=0,
Expand All @@ -129,7 +129,7 @@ def test_raw_response_chat_overload_2(self, client: Writer) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
)

Expand All @@ -146,7 +146,7 @@ def test_streaming_response_chat_overload_2(self, client: Writer) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
) as response:
assert not response.is_closed
Expand All @@ -170,7 +170,7 @@ async def test_method_chat_overload_1(self, async_client: AsyncWriter) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
)
assert_matches_type(Chat, chat, path=["response"])

Expand All @@ -184,7 +184,7 @@ async def test_method_chat_with_all_params_overload_1(self, async_client: AsyncW
"name": "name",
}
],
model="palmyra-x-002-32k",
model="model",
max_tokens=0,
n=0,
stop=["string", "string", "string"],
Expand All @@ -203,7 +203,7 @@ async def test_raw_response_chat_overload_1(self, async_client: AsyncWriter) ->
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
)

assert response.is_closed is True
Expand All @@ -220,7 +220,7 @@ async def test_streaming_response_chat_overload_1(self, async_client: AsyncWrite
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -239,7 +239,7 @@ async def test_method_chat_overload_2(self, async_client: AsyncWriter) -> None:
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
)
await chat_stream.response.aclose()
Expand All @@ -254,7 +254,7 @@ async def test_method_chat_with_all_params_overload_2(self, async_client: AsyncW
"name": "name",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
max_tokens=0,
n=0,
Expand All @@ -273,7 +273,7 @@ async def test_raw_response_chat_overload_2(self, async_client: AsyncWriter) ->
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
)

Expand All @@ -290,7 +290,7 @@ async def test_streaming_response_chat_overload_2(self, async_client: AsyncWrite
"role": "user",
}
],
model="palmyra-x-002-32k",
model="model",
stream=True,
) as response:
assert not response.is_closed
Expand Down

0 comments on commit 3c48690

Please sign in to comment.