Skip to content

Commit

Permalink
Try moving extra parameters. Change Parameters back to unknown
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Angevine <[email protected]>
  • Loading branch information
trangevi committed Aug 13, 2024
1 parent d2d069e commit 7b1e6e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion specification/ai/ModelClient/models/chat_completions.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ model ChatCompletionsOptions {
""")
`model`?: string;

...AdditionalRequestHeaders;

...Record<unknown>;
}

Expand Down Expand Up @@ -462,7 +464,7 @@ model FunctionDefinition {

#suppress "@azure-tools/typespec-azure-core/bad-record-type"
@doc("The parameters the function accepts, described as a JSON Schema object.")
parameters?: Record<unknown>;
parameters?: unknown;
}

@doc("""
Expand Down
2 changes: 0 additions & 2 deletions specification/ai/ModelClient/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ op getChatCompletions is Azure.Core.RpcOperation<
op getChatCompletions is Azure.Core.RpcOperation<
{
chatCompletionsOptions: ChatCompletionsOptions,
@header("extra-parameters")
extraParams?: ExtraParameters,
},
ChatCompletions
>;
Expand Down

0 comments on commit 7b1e6e1

Please sign in to comment.