Skip to content

Commit

Permalink
Merge pull request #50 from samselikoff/main
Browse files Browse the repository at this point in the history
Remove defaults - they were added for Readme, but arent actually API …
  • Loading branch information
Nutlope authored Oct 22, 2024
2 parents f5914dc + c31fd5f commit afd5a25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload-to-stainless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
project_name: 'TogetherAI'
- uses: readmeio/rdme@v8
with:
rdme: openapi "openapi.yaml" --key=${{ secrets.README_TOKEN }} --id=${{ secrets.README_DEFINITION_ID }}
rdme: openapi "openapi.documented.yaml" --key=${{ secrets.README_TOKEN }} --id=${{ secrets.README_DEFINITION_ID }}
31 changes: 1 addition & 30 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,10 @@ paths:
type: string
description: A description of the desired images. Maximum length varies by model.
example: cat floating in space, cinematic
default: cat floating in space, cinematic
model:
type: string
description: The model to use for image generation.
example: stabilityai/stable-diffusion-xl-base-1.0
default: stabilityai/stable-diffusion-xl-base-1.0
steps:
type: integer
default: 20
Expand Down Expand Up @@ -599,12 +597,10 @@ components:
type: string
description: The model to be used for the rerank request.
example: Salesforce/Llama-Rank-V1
default: Salesforce/Llama-Rank-V1
query:
type: string
description: The search query to be used for ranking.
example: What animals can I find near Peru?
default: What animals can I find near Peru?
documents:
description: List of documents, which can be either strings or objects.
oneOf:
Expand Down Expand Up @@ -633,23 +629,6 @@ components:
'title': 'Wild Bactrian camel',
'text': 'The wild Bactrian camel (Camelus ferus) is an endangered species of camel endemic to Northwest China and southwestern Mongolia.',
}
default:
- {
'title': 'Llama',
'text': 'The llama is a domesticated South American camelid, widely used as a meat and pack animal by Andean cultures since the pre-Columbian era.',
}
- {
'title': 'Panda',
'text': 'The giant panda (Ailuropoda melanoleuca), also known as the panda bear or simply panda, is a bear species endemic to China.',
}
- {
'title': 'Guanaco',
'text': 'The guanaco is a camelid native to South America, closely related to the llama. Guanacos are one of two wild South American camelids; the other species is the vicuña, which lives at higher elevations.',
}
- {
'title': 'Wild Bactrian camel',
'text': 'The wild Bactrian camel (Camelus ferus) is an endangered species of camel endemic to Northwest China and southwestern Mongolia.',
}
top_n:
type: integer
description: The number of top results to return.
Expand Down Expand Up @@ -841,12 +820,10 @@ components:
type: string
description: A string providing context for the model to complete.
example: <s>[INST] What is the capital of France? [/INST]
default: <s>[INST] What is the capital of France? [/INST]
model:
type: string
description: The name of the model to query.
example: mistralai/Mixtral-8x7B-Instruct-v0.1
default: mistralai/Mixtral-8x7B-Instruct-v0.1
max_tokens:
type: integer
description: The maximum number of tokens to generate.
Expand Down Expand Up @@ -1085,11 +1062,6 @@ components:
required:
- role
- content
default:
- role: system
content: You are a helpful assistant
- role: user
content: What is 1 + 1?
model:
description: >
The name of the model to query.<br>
Expand Down Expand Up @@ -1467,7 +1439,6 @@ components:
type: string
description: The name of the embedding model to use.
example: togethercomputer/m2-bert-80M-8k-retrieval
default: togethercomputer/m2-bert-80M-8k-retrieval
input:
oneOf:
- type: string
Expand All @@ -1478,7 +1449,7 @@ components:
type: string
description: A string providing the text for the model to embed.
example: Our solar system orbits the Milky Way galaxy at about 515,000 mph
default: Our solar system orbits the Milky Way galaxy at about 515,000 mph
example: Our solar system orbits the Milky Way galaxy at about 515,000 mph

EmbeddingsResponse:
type: object
Expand Down

0 comments on commit afd5a25

Please sign in to comment.