Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bytez-com/docs
/ functions
Functions
47 in github.com/Bytez-com/docs
⨍
Functions
47
◇
Types & classes
21
↓ 58 callers
Method
run
( input?: any, params?: Inference | Stream, stream?: Stream )
sdk/javascript/src/model.ts:67
↓ 36 callers
Method
model
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 callers
Function
test
sdk/javascript/tests/tasks.test.ts:420
↓ 14 callers
Function
getDataUrl
(url: string)
sdk/javascript/tests/tasks.test.ts:8
↓ 14 callers
Method
run
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 callers
Method
toString
(indent = 1, depth = 0)
docs/scripts/generatePages/Component.js:8
↓ 7 callers
Function
paramsExist
(params)
docs/scripts/generatePages/index.js:406
↓ 6 callers
Method
models
Lists available models and provides basic information about each.
sdk/python/bytez/main.py:28
↓ 3 callers
Method
request
Send an HTTP request. Args: path (str): API endpoint path. method (str): HTTP method (default: "GET").
sdk/python/bytez/client.py:27
↓ 3 callers
Method
request
( path: string, method?: Method, body?: RequestBody, providerKey?: string )
sdk/javascript/src/client.ts:41
↓ 2 callers
Function
formatIntoCodeSnippet
(template, params, stream, onBeforeUpdateTemplateIds, replacements)
docs/scripts/generatePages/index.js:321
↓ 2 callers
Function
runCommand
sdk/javascript/deploy.js:9
↓ 1 callers
Method
_initialize
Fetch model details and set up internal state.
sdk/python/bytez/model.py:30
↓ 1 callers
Method
_list_models
Hidden function to list models.
sdk/python/bytez/main.py:36
↓ 1 callers
Method
_list_tasks
Hidden function to list tasks.
sdk/python/bytez/main.py:50
↓ 1 callers
Method
childrenToString
(indent, depth)
docs/scripts/generatePages/Component.js:27
↓ 1 callers
Function
constructOpenApiSpec
(task)
docs/scripts/generatePages/constructOpenApiSpec.js:3
↓ 1 callers
Function
constructPageHeader
({ title, task, description, icon })
docs/scripts/generatePages/index.js:159
↓ 1 callers
Function
formatCurl
(modelId, requestInput, params, stream)
docs/scripts/generatePages/index.js:297
↓ 1 callers
Function
formatIntoSections
(templateString, params, stream)
docs/scripts/generatePages/index.js:329
↓ 1 callers
Function
generateCodeSnippets
(modelId, requestInput, requestInputHttp, params, stream)
docs/scripts/generatePages/index.js:227
↓ 1 callers
Function
increment_version
Increment the patch number in a semantic version string
sdk/python/deploy.py:7
↓ 1 callers
Function
main
()
sdk/python/deploy.py:27
↓ 1 callers
Function
main
()
docs/scripts/generatePages/index.js:10
↓ 1 callers
Method
tasks
List available tasks.
sdk/python/bytez/main.py:32
↓ 1 callers
Function
toAccordion
({ exampleTitle, exampleDescription, supportsUrlInput, supportsBase64Input, mediaInputType, defaul
docs/scripts/generatePages/index.js:175
↓ 1 callers
Function
updateTemplateIds
(string, replacements)
docs/scripts/generatePages/index.js:397
↓ 1 callers
Function
update_version_in_file
Update the version in the setup.py file
sdk/python/deploy.py:13
Function
AskAI
()
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
Method
constructor
( apiKey: string, dev = false, isBrowser = typeof window !== "undefined" )
sdk/javascript/src/client.ts:4
Method
constructor
(apiKey: string, dev = false, browser?: boolean)
sdk/javascript/src/index.ts:12
Method
constructor
( modelId: string, bytez: Bytez, client: Client, providerKey?: string )
sdk/javascript/src/model.ts:10
Method
constructor
({ name, props = {}, children = [], textContent })
docs/scripts/generatePages/Component.js:2
Function
handleKeyDown
(e)
docs/snippets/ask-ai.jsx:12
Method
test_creates_model_class
Test that the correct model ID is loaded.
sdk/python/test.py:17
Method
test_list_models
Test listing models.
sdk/python/test.py:21
Method
test_params
Test running a model with parameters.
sdk/python/test.py:50
Method
test_params_with_kwargs
Test running a model with parameters.
sdk/python/test.py:36
Method
test_runs_a_model
Test running a model.
sdk/python/test.py:29
Method
test_stream
Test streaming text.
sdk/python/test.py:70
Method
test_stream_false_does_not_stream
Test that `stream=False` does not return a stream.
sdk/python/test.py:84
Method
test_stream_kwargs
Test streaming text.
sdk/python/test.py:64
Method
test_streams_text_with_params
Test streaming text with parameters.
sdk/python/test.py:77