forked from phoenix-oss/llama-stack-mirror
fix: signature change to match OpenAI SDK (#2237)
This commit is contained in:
parent
b054023800
commit
558d109ab7
5 changed files with 11 additions and 11 deletions
|
@ -579,14 +579,14 @@ class Agents(Protocol):
|
|||
#
|
||||
# Both of these APIs are inherently stateful.
|
||||
|
||||
@webmethod(route="/openai/v1/responses/{id}", method="GET")
|
||||
@webmethod(route="/openai/v1/responses/{response_id}", method="GET")
|
||||
async def get_openai_response(
|
||||
self,
|
||||
id: str,
|
||||
response_id: str,
|
||||
) -> OpenAIResponseObject:
|
||||
"""Retrieve an OpenAI response by its ID.
|
||||
|
||||
:param id: The ID of the OpenAI response to retrieve.
|
||||
:param response_id: The ID of the OpenAI response to retrieve.
|
||||
:returns: An OpenAIResponseObject.
|
||||
"""
|
||||
...
|
||||
|
|
|
@ -305,9 +305,9 @@ class MetaReferenceAgentsImpl(Agents):
|
|||
# OpenAI responses
|
||||
async def get_openai_response(
|
||||
self,
|
||||
id: str,
|
||||
response_id: str,
|
||||
) -> OpenAIResponseObject:
|
||||
return await self.openai_responses_impl.get_openai_response(id)
|
||||
return await self.openai_responses_impl.get_openai_response(response_id)
|
||||
|
||||
async def create_openai_response(
|
||||
self,
|
||||
|
|
|
@ -214,9 +214,9 @@ class OpenAIResponsesImpl:
|
|||
|
||||
async def get_openai_response(
|
||||
self,
|
||||
id: str,
|
||||
response_id: str,
|
||||
) -> OpenAIResponseObject:
|
||||
response_with_input = await self._get_previous_response_with_input(id)
|
||||
response_with_input = await self._get_previous_response_with_input(response_id)
|
||||
return response_with_input.response
|
||||
|
||||
async def create_openai_response(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue