8000 lint - openai client protocol (#87) · RabinPant/sdk-python@0bb2b64 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bb2b64

Browse files
authored
lint - openai client protocol (strands-agents#87)
1 parent 1831bdb commit 0bb2b64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/strands/models/openai.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
class Client(Protocol):
1818
"""Protocol defining the OpenAI-compatible interface for the underlying provider client."""
1919

20-
chat: Any
20+
@property
21+
def chat(self) -> Any:
22+
"""Chat completions interface."""
23+
...
2124

2225

2326
class OpenAIModel(SAOpenAIModel):

0 commit comments

Comments
 (0)
0