Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 69 additions & 8 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ errors:
status-code: 501
type: unknown
docs: KPI depends on other KPIs - not implemented
InternalServerError:
status-code: 500
type: unknown
docs: Predicting error
examples:
- value: Server responded with an error.
BadRequestError:
status-code: 400
type: unknown
docs: Bad Request
docs: ''
examples:
- value: string
- value:
key: value
- value: string
InternalServerError:
status-code: 500
type: unknown
docs: Predicting error
examples:
- value: Server responded with an error.
ForbiddenError:
status-code: 403
type: unknown
Expand Down Expand Up @@ -5455,6 +5455,67 @@ types:
results: list<LseUser>
source:
openapi: openapi/openapi.yaml
PaginatedPaginatedProjectMemberList:
properties:
count: integer
next:
type: optional<string>
validation:
format: uri
previous:
type: optional<string>
validation:
format: uri
results: list<PaginatedProjectMember>
source:
openapi: openapi/openapi.yaml
PaginatedProjectMember:
docs: |-
A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations
properties:
active_organization: optional<integer>
active_organization_meta: string
allow_newsletters:
type: optional<boolean>
docs: Allow sending newsletters to user
avatar: string
custom_hotkeys: optional<unknown>
date_joined: optional<datetime>
email:
type: optional<string>
validation:
format: email
maxLength: 254
first_name:
type: optional<string>
validation:
maxLength: 256
id: integer
initials:
type: string
default: '?'
last_activity: datetime
last_name:
type: optional<string>
validation:
maxLength: 256
lse_fields: LseFields
org_membership: list<OrganizationMembership>
pause: string
phone:
type: optional<string>
validation:
maxLength: 256
project_role: string
username:
type: string
validation:
maxLength: 256
source:
openapi: openapi/openapi.yaml
PaginatedRoleBasedTaskList:
properties:
tasks: list<RoleBasedTask>
Expand Down
53 changes: 47 additions & 6 deletions .mock/definition/llm.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
types:
ApiLlmOpenaiChatCompletionsCreateRequestMessagesItemRole:
enum:
- system
- user
- assistant
docs: The role of the message author
inline: true
source:
openapi: openapi/openapi.yaml
ApiLlmOpenaiChatCompletionsCreateRequestMessagesItem:
properties:
content:
type: string
docs: The content of the message
role:
type: ApiLlmOpenaiChatCompletionsCreateRequestMessagesItemRole
docs: The role of the message author
source:
openapi: openapi/openapi.yaml
inline: true
imports:
root: __package__.yml
service:
auth: false
base-path: ''
Expand All @@ -7,20 +30,38 @@ service:
method: POST
auth: true
docs: >-
Proxy requests to OpenAI /chat/completions and return the full response
payload.
Proxy requests to OpenAI-compatible chat completions APIs and return the
full response payload. Supports multiple providers via model parameter
format: "model_name" (defaults to OpenAI), "provider/model_name", or
"provider:model_name". Works with providers that offer OpenAI-compatible
endpoints.
source:
openapi: openapi/openapi.yaml
display-name: Proxy to OpenAI Chat Completions
display-name: Proxy to OpenAI-Compatible Chat Completions
request:
body: map<string, unknown>
name: ApiLlmOpenaiChatCompletionsCreateRequest
body:
properties:
messages:
docs: Array of message objects for the chat completion
type: list<ApiLlmOpenaiChatCompletionsCreateRequestMessagesItem>
model:
type: string
docs: >-
Model identifier. Can be "model_name" (defaults to OpenAI),
"provider/model_name", or "provider:model_name"
content-type: application/json
response:
docs: ''
type: map<string, unknown>
type: unknown
errors:
- root.BadRequestError
examples:
- request:
key: value
messages:
- content: content
role: system
model: gpt-4
response:
body:
key: value
Expand Down
3 changes: 2 additions & 1 deletion .mock/definition/projects/members/paginated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ service:
docs: Include deleted members in the results
response:
docs: ''
type: root.PaginatedLseUserList
type: root.PaginatedPaginatedProjectMemberList
examples:
- path-parameters:
id: 1
Expand Down Expand Up @@ -78,6 +78,7 @@ service:
role: role
pause: pause
phone: phone
project_role: project_role
username: username
audiences:
- public
Expand Down
Loading
Loading