MCPcopy Create free account

hub / github.com/Bytez-com/docs / functions

Functions47 in github.com/Bytez-com/docs

↓ 58 callersMethodrun
( input?: any, params?: Inference | Stream, stream?: Stream )
sdk/javascript/src/model.ts:67
↓ 36 callersMethodmodel
Get a model instance. Args: model_id (str): The model ID, e.g., `openai-community/gpt2`. provider_key (str,
sdk/python/bytez/main.py:54
↓ 16 callersFunctiontest
sdk/javascript/tests/tasks.test.ts:420
↓ 14 callersFunctiongetDataUrl
(url: string)
sdk/javascript/tests/tasks.test.ts:8
↓ 14 callersMethodrun
Execute the model with the given input. This method supports flexible argument passing. You can pass parameters usually, or
sdk/python/bytez/model.py:44
↓ 9 callersMethodtoString
(indent = 1, depth = 0)
docs/scripts/generatePages/Component.js:8
↓ 7 callersFunctionparamsExist
(params)
docs/scripts/generatePages/index.js:406
↓ 6 callersMethodmodels
Lists available models and provides basic information about each.
sdk/python/bytez/main.py:28
↓ 3 callersMethodrequest
Send an HTTP request. Args: path (str): API endpoint path. method (str): HTTP method (default: "GET").
sdk/python/bytez/client.py:27
↓ 3 callersMethodrequest
( path: string, method?: Method, body?: RequestBody, providerKey?: string )
sdk/javascript/src/client.ts:41
↓ 2 callersFunctionformatIntoCodeSnippet
(template, params, stream, onBeforeUpdateTemplateIds, replacements)
docs/scripts/generatePages/index.js:321
↓ 2 callersFunctionrunCommand
sdk/javascript/deploy.js:9
↓ 1 callersMethod_initialize
Fetch model details and set up internal state.
sdk/python/bytez/model.py:30
↓ 1 callersMethod_list_models
Hidden function to list models.
sdk/python/bytez/main.py:36
↓ 1 callersMethod_list_tasks
Hidden function to list tasks.
sdk/python/bytez/main.py:50
↓ 1 callersMethodchildrenToString
(indent, depth)
docs/scripts/generatePages/Component.js:27
↓ 1 callersFunctionconstructOpenApiSpec
(task)
docs/scripts/generatePages/constructOpenApiSpec.js:3
↓ 1 callersFunctionconstructPageHeader
({ title, task, description, icon })
docs/scripts/generatePages/index.js:159
↓ 1 callersFunctionformatCurl
(modelId, requestInput, params, stream)
docs/scripts/generatePages/index.js:297
↓ 1 callersFunctionformatIntoSections
(templateString, params, stream)
docs/scripts/generatePages/index.js:329
↓ 1 callersFunctiongenerateCodeSnippets
(modelId, requestInput, requestInputHttp, params, stream)
docs/scripts/generatePages/index.js:227
↓ 1 callersFunctionincrement_version
Increment the patch number in a semantic version string
sdk/python/deploy.py:7
↓ 1 callersFunctionmain
()
sdk/python/deploy.py:27
↓ 1 callersFunctionmain
()
docs/scripts/generatePages/index.js:10
↓ 1 callersMethodtasks
List available tasks.
sdk/python/bytez/main.py:32
↓ 1 callersFunctiontoAccordion
({ exampleTitle, exampleDescription, supportsUrlInput, supportsBase64Input, mediaInputType, defaul
docs/scripts/generatePages/index.js:175
↓ 1 callersFunctionupdateTemplateIds
(string, replacements)
docs/scripts/generatePages/index.js:397
↓ 1 callersFunctionupdate_version_in_file
Update the version in the setup.py file
sdk/python/deploy.py:13
FunctionAskAI
()
docs/snippets/ask-ai.jsx:3
Method__init__
Initialize the client with an API key. Args: api_key (str): Your Bytez API key.
sdk/python/bytez/client.py:14
Method__init__
Initialize the Bytez API client with an API key. Args: api_key (str): Your Bytez API key. dev (bool): Whethe
sdk/python/bytez/main.py:11
Method__init__
(self, parent)
sdk/python/bytez/main.py:25
Method__init__
Initialize a model instance. Args: model_id (str): The model ID, e.g., `openai-community/gpt2`. bytez (Bytez
sdk/python/bytez/model.py:10
Methodconstructor
( apiKey: string, dev = false, isBrowser = typeof window !== "undefined" )
sdk/javascript/src/client.ts:4
Methodconstructor
(apiKey: string, dev = false, browser?: boolean)
sdk/javascript/src/index.ts:12
Methodconstructor
( modelId: string, bytez: Bytez, client: Client, providerKey?: string )
sdk/javascript/src/model.ts:10
Methodconstructor
({ name, props = {}, children = [], textContent })
docs/scripts/generatePages/Component.js:2
FunctionhandleKeyDown
(e)
docs/snippets/ask-ai.jsx:12
Methodtest_creates_model_class
Test that the correct model ID is loaded.
sdk/python/test.py:17
Methodtest_list_models
Test listing models.
sdk/python/test.py:21
Methodtest_params
Test running a model with parameters.
sdk/python/test.py:50
Methodtest_params_with_kwargs
Test running a model with parameters.
sdk/python/test.py:36
Methodtest_runs_a_model
Test running a model.
sdk/python/test.py:29
Methodtest_stream
Test streaming text.
sdk/python/test.py:70
Methodtest_stream_false_does_not_stream
Test that `stream=False` does not return a stream.
sdk/python/test.py:84
Methodtest_stream_kwargs
Test streaming text.
sdk/python/test.py:64
Methodtest_streams_text_with_params
Test streaming text with parameters.
sdk/python/test.py:77