Skip to content

Commit

Permalink
Regenerate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dargilco committed Jun 10, 2024
1 parent ac08a31 commit 36d9e57
Show file tree
Hide file tree
Showing 17 changed files with 126 additions and 120 deletions.
22 changes: 14 additions & 8 deletions specification/ai/ModelClient/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,25 @@ interface Client1 {
getModelInfo is ModelClient.getModelInfo;
}

@client({
name: "EmbeddingsClient",
service: ModelClient,
}, "python")
@client(
{
name: "EmbeddingsClient",
service: ModelClient,
},
"python"
)
interface Client2 {
embed is ModelClient.getEmbeddings;
getModelInfo is ModelClient.getModelInfo;
}

@client({
name: "ImageEmbeddingsClient",
service: ModelClient,
}, "python")
@client(
{
name: "ImageEmbeddingsClient",
service: ModelClient,
},
"python"
)
interface Client3 {
embed is ModelClient.getImageEmbeddings;
getModelInfo is ModelClient.getModelInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,46 @@
"role": "ChatRequestMessage"
}
],
"frequency_penalty": -2,
"frequency_penalty": -1,
"stream": true,
"presence_penalty": 0,
"presence_penalty": -1,
"temperature": 0,
"top_p": 0,
"max_tokens": 0,
"response_format": "text",
"stop": [
"jsgknsbxaqse"
"hyjmwlrxwyixwbx"
],
"tools": [
{
"type": "ChatCompletionsToolDefinition"
}
],
"seed": 16
"seed": 22
}
},
"responses": {
"200": {
"body": {
"id": "vttvkvwbbvgjtqphyswtfjq",
"created": 12,
"model": "yyxicqgwvohxtfgwaymlypcyuyskgl",
"id": "xljaucrjqaqjipmc",
"created": 29,
"model": "q",
"usage": {
"completion_tokens": 19,
"prompt_tokens": 14,
"total_tokens": 16
"completion_tokens": 18,
"prompt_tokens": 12,
"total_tokens": 8
},
"choices": [
{
"index": 1,
"index": 12,
"finish_reason": "stop",
"message": {
"role": "system",
"content": "vjwamdxrsbqojpolqr",
"content": "bvltz",
"tool_calls": [
{
"type": "ChatCompletionsToolCall",
"id": "pmmdjgalvahbkafjqir"
"id": "zoerkv"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
"responses": {
"200": {
"body": {
"id": "vttvkvwbbvgjtqphyswtfjq",
"created": 12,
"model": "yyxicqgwvohxtfgwaymlypcyuyskgl",
"id": "xljaucrjqaqjipmc",
"created": 29,
"model": "q",
"usage": {
"completion_tokens": 19,
"prompt_tokens": 14,
"total_tokens": 16
"completion_tokens": 18,
"prompt_tokens": 12,
"total_tokens": 8
},
"choices": [
{
"index": 1,
"index": 12,
"finish_reason": "stop",
"message": {
"role": "system",
"content": "vjwamdxrsbqojpolqr"
"content": "bvltz"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@
"unknown-parameters": "error",
"body": {
"input": [
"uwfwjjkuc"
"wlux"
],
"dimensions": 20,
"dimensions": 27,
"encoding_format": "base64",
"input_type": "text"
}
},
"responses": {
"200": {
"body": {
"id": "vjtifrodzwydvynddmbudnno",
"id": "kedirjyccyaebyn",
"data": [
{
"embedding": [
16
],
"index": 1
"index": 18
}
],
"usage": {
"input_tokens": 20,
"prompt_tokens": 28,
"total_tokens": 2
"input_tokens": 21,
"prompt_tokens": 6,
"total_tokens": 16
},
"model": "obwfxvadcvvziooogpswzqkn"
"model": "zdfajtcsw"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@
"api-version": "2024-05-01-preview",
"body": {
"input": [
"ujqrjllpyke"
"gpopqlqlmaqsmnndd"
]
}
},
"responses": {
"200": {
"body": {
"id": "vjtifrodzwydvynddmbudnno",
"id": "kedirjyccyaebyn",
"data": [
{
"embedding": [
16
],
"index": 1
"index": 18
}
],
"usage": {
"input_tokens": 20,
"prompt_tokens": 28,
"total_tokens": 2
"input_tokens": 21,
"prompt_tokens": 6,
"total_tokens": 16
},
"model": "obwfxvadcvvziooogpswzqkn"
"model": "zdfajtcsw"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@
"body": {
"input": [
{
"image": "rlwzmtmuitzvs",
"text": "htjxmfwdiw"
"image": "grfazklprgwztlcy",
"text": "alnrjrixfnv"
}
],
"dimensions": 26,
"dimensions": 4,
"encoding_format": "base64",
"input_type": "text"
}
},
"responses": {
"200": {
"body": {
"id": "vjtifrodzwydvynddmbudnno",
"id": "kedirjyccyaebyn",
"data": [
{
"embedding": [
16
],
"index": 1
"index": 18
}
],
"usage": {
"input_tokens": 20,
"prompt_tokens": 28,
"total_tokens": 2
"input_tokens": 21,
"prompt_tokens": 6,
"total_tokens": 16
},
"model": "obwfxvadcvvziooogpswzqkn"
"model": "zdfajtcsw"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@
"body": {
"input": [
{
"image": "rlwzmtmuitzvs"
"image": "grfazklprgwztlcy"
}
]
}
},
"responses": {
"200": {
"body": {
"id": "vjtifrodzwydvynddmbudnno",
"id": "kedirjyccyaebyn",
"data": [
{
"embedding": [
16
],
"index": 1
"index": 18
}
],
"usage": {
"input_tokens": 20,
"prompt_tokens": 28,
"total_tokens": 2
"input_tokens": 21,
"prompt_tokens": 6,
"total_tokens": 16
},
"model": "obwfxvadcvvziooogpswzqkn"
"model": "zdfajtcsw"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"responses": {
"200": {
"body": {
"model_name": "uvbxltprmh",
"model_name": "ayxxrduegvgjomzmfcpndvdmvg",
"model_type": "embeddings",
"model_provider_name": "uuklhgbngggjryjphasqjiyk"
"model_provider_name": "sursnucghq"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"responses": {
"200": {
"body": {
"model_name": "uvbxltprmh",
"model_name": "ayxxrduegvgjomzmfcpndvdmvg",
"model_type": "embeddings",
"model_provider_name": "uuklhgbngggjryjphasqjiyk"
"model_provider_name": "sursnucghq"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,46 @@
"role": "ChatRequestMessage"
}
],
"frequency_penalty": -2,
"frequency_penalty": -1,
"stream": true,
"presence_penalty": 0,
"presence_penalty": -1,
"temperature": 0,
"top_p": 0,
"max_tokens": 0,
"response_format": "text",
"stop": [
"jsgknsbxaqse"
"hyjmwlrxwyixwbx"
],
"tools": [
{
"type": "ChatCompletionsToolDefinition"
}
],
"seed": 16
"seed": 22
}
},
"responses": {
"200": {
"body": {
"id": "vttvkvwbbvgjtqphyswtfjq",
"created": 12,
"model": "yyxicqgwvohxtfgwaymlypcyuyskgl",
"id": "xljaucrjqaqjipmc",
"created": 29,
"model": "q",
"usage": {
"completion_tokens": 19,
"prompt_tokens": 14,
"total_tokens": 16
"completion_tokens": 18,
"prompt_tokens": 12,
"total_tokens": 8
},
"choices": [
{
"index": 1,
"index": 12,
"finish_reason": "stop",
"message": {
"role": "system",
"content": "vjwamdxrsbqojpolqr",
"content": "bvltz",
"tool_calls": [
{
"type": "ChatCompletionsToolCall",
"id": "pmmdjgalvahbkafjqir"
"id": "zoerkv"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
"responses": {
"200": {
"body": {
"id": "vttvkvwbbvgjtqphyswtfjq",
"created": 12,
"model": "yyxicqgwvohxtfgwaymlypcyuyskgl",
"id": "xljaucrjqaqjipmc",
"created": 29,
"model": "q",
"usage": {
"completion_tokens": 19,
"prompt_tokens": 14,
"total_tokens": 16
"completion_tokens": 18,
"prompt_tokens": 12,
"total_tokens": 8
},
"choices": [
{
"index": 1,
"index": 12,
"finish_reason": "stop",
"message": {
"role": "system",
"content": "vjwamdxrsbqojpolqr"
"content": "bvltz"
}
}
]
Expand Down
Loading

0 comments on commit 36d9e57

Please sign in to comment.