poc: changes name
This commit is contained in:
parent
7c52d31444
commit
442f819391
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ class GPTService(AIServiceBase):
|
|||
tools=[
|
||||
self._get_function(request.function_name),
|
||||
],
|
||||
tool_choice={"type": "function", "name": "ping_pong"},
|
||||
tool_choice={"type": "function", "name": request.function_name},
|
||||
parallel_tool_calls=False,
|
||||
)
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ class GPTService(AIServiceBase):
|
|||
return GPTRequest(
|
||||
content="ping",
|
||||
role="user",
|
||||
function_name="ping",
|
||||
function_name="ping_pong",
|
||||
)
|
||||
|
||||
def _transform(self, resp):
|
||||
|
|
@ -50,7 +50,7 @@ class GPTService(AIServiceBase):
|
|||
doc: https://platform.openai.com/docs/guides/function-calling
|
||||
"""
|
||||
match name:
|
||||
case "ping":
|
||||
case "ping_pong":
|
||||
return {
|
||||
"type": "function",
|
||||
"name": "ping_pong",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue