mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-28 05:22:00 +00:00
chore: Address review feedback with minor code cleanups
The bulk of the change here is making the naming and contents of the conversion to/from Responses API inputs -> Chat Completion API messages and Chat Completion API choices -> Responses API outputs more clear with some code comments, method renaming, and slight refactoring. There are also some other minor changes, like moving a pydantic model from the api/ to the implementation since it's not actually exposed via the API, as well as making some if/else usage more clear. Signed-off-by: Ben Browning <bbrownin@redhat.com>
This commit is contained in:
parent
9166baa716
commit
65c56d0ee8
4 changed files with 93 additions and 84 deletions
|
|
@ -181,8 +181,3 @@ register_schema(OpenAIResponseInputTool, name="OpenAIResponseInputTool")
|
|||
class OpenAIResponseInputItemList(BaseModel):
|
||||
data: list[OpenAIResponseInput]
|
||||
object: Literal["list"] = "list"
|
||||
|
||||
|
||||
class OpenAIResponsePreviousResponseWithInputItems(BaseModel):
|
||||
input_items: OpenAIResponseInputItemList
|
||||
response: OpenAIResponseObject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue