Skip to content

Commit

Permalink
✨ add snippet example (#342)
Browse files Browse the repository at this point in the history
* example

* update

---------

Co-authored-by: chdeskur <chdeskur@gmail.com>
  • Loading branch information
fern-support and chdeskur authored Oct 9, 2024
1 parent 0753981 commit b28a541
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "vectara",
"version": "0.43.7"
"version": "0.44.10"
}
28 changes: 27 additions & 1 deletion fern/openapi-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,32 @@ paths:
response-stream:
$ref: "#/components/schemas/QueryStreamedResponse"
x-fern-sdk-method-name: query
x-fern-examples:
- request:
query: hello, world?
search:
corpora:
- lexical_interpolation: 0.005
offset: 0
limit: 10
context_configuration:
sentences_before: 2
sentences_after: 2
start_tag: "<em>"
end_tag: "</em>"
generation:
max_used_search_results: 5
citations:
style: "none"
response_language: "auto"
stream_response: true
response:
stream:
- type: search_results
search_results:
- text: "Hello, world!"
score: 0.9
document_id: "doc_123"
/v2/corpora/{corpus_key}/query:
get:
x-fern-sdk-group-name: corpora
Expand Down Expand Up @@ -415,4 +441,4 @@ paths:
required:
- access_token
- token_type
- expires_in
- expires_in

0 comments on commit b28a541

Please sign in to comment.