diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml index ac12837..eec7008 100644 --- a/.github/workflows/upload-to-stainless.yml +++ b/.github/workflows/upload-to-stainless.yml @@ -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 }} diff --git a/openapi.yaml b/openapi.yaml index c57a959..6788b7b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -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 @@ -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: @@ -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. @@ -841,12 +820,10 @@ components: type: string description: A string providing context for the model to complete. example: [INST] What is the capital of France? [/INST] - default: [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. @@ -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.
@@ -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 @@ -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