Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nat/openplayground
/ functions
Functions
281 in github.com/nat/openplayground
⨍
Functions
281
◇
Types & classes
40
↳
Endpoints
16
Method
__model_added_callback__
(self, model_name, model)
server/app.py:146
Method
__model_added_callback__
(self, model_name, model)
server/app.py:236
Method
__model_download_update_callback__
(self, _, model, progress)
server/app.py:176
Method
__model_updated_callback__
(self, model_name, model)
server/app.py:161
Method
__openai_chat_generation__
(self, provider_details: ProviderDetails, inference_request: InferenceRequest)
server/lib/inference/__init__.py:201
Method
__openai_text_generation__
(self, provider_details: ProviderDetails, inference_request: InferenceRequest)
server/lib/inference/__init__.py:258
Method
__repr__
(self)
server/lib/entities.py:26
Method
__repr__
(self)
server/lib/entities.py:102
Method
__repr__
(self)
server/lib/sse.py:69
Method
__str__
Serialize this object to a string, according to the `server-sent events specification <https://www.w3.org/TR/eventsource/>`_.
server/lib/sse.py:51
Method
__update___
(self, event: str, *args, **kwargs)
server/lib/storage.py:185
Function
_onValueChange
(value)
app/src/components/ui/slider.tsx:15
Function
_onValueCommit
(value)
app/src/components/ui/slider.tsx:23
Function
add_cors_header
(response)
server/lib/api/__init__.py:18
Function
all_models
Returns a list of all models
server/lib/api/__init__.py:27
Function
beforeUnloadHandler
()
app/src/app.tsx:235
Function
before_request
()
server/app.py:54
Function
bulk_completions
(global_state, tasks: List[InferenceRequest])
server/lib/api/inference.py:101
Method
cancel_callback
(self, message)
server/lib/inference/__init__.py:125
Function
cli
()
server/app.py:323
Function
completionCallback
({event, data, meta})
app/src/pages/playground.tsx:367
Function
completion_callback
({event})
app/src/pages/compare.tsx:557
Method
componentDidCatch
()
app/src/pages/playground.tsx:247
Method
copy
(self)
server/lib/entities.py:90
Function
createChatCompletionRequest
(prompt, model)
app/src/app.tsx:225
Function
createTextCompletionRequest
({prompt, models})
app/src/app.tsx:216
Function
debouncedFunction
(...args)
app/src/app.tsx:139
Method
default
(self, obj)
server/lib/entities.py:110
Function
enabled_models
Returns a list of enabled models
server/lib/api/__init__.py:55
Function
enabled_models_names
Returns a list of enabled models
server/lib/api/__init__.py:42
Function
export_config
Export configuration settings. This command exports the current configuration settings to a file. Arguments: --output, -o: Output f
server/app.py:380
Function
focusEditor
()
app/src/pages/compare.tsx:445
Function
generate_card
(modelState: any)
app/src/components/parameters-side-panel.tsx:246
Method
generator
()
server/lib/sse.py:170
Method
get_announcer
(self)
server/app.py:319
Method
get_enabled_models_by_provider
(self)
server/lib/storage.py:143
Method
get_model
(self, model_name: str)
server/lib/entities.py:66
Method
get_provider_names
(self)
server/lib/storage.py:158
Function
greedy_search_generator
Generates sequences for models with a language modeling head using greedy decoding. Monkey patched function to create a generator for next_to
server/lib/inference/huggingface/generator.py:15
Function
handleAPIKeySubmit
(e: React.FormEvent<HTMLFormElement>)
app/src/pages/settings.tsx:145
Function
handleKeyCommand
(command: any, editorState: any)
app/src/pages/compare.tsx:449
Method
handleKeyCommand
(command: any, editorState: any)
app/src/pages/playground.tsx:265
Function
handleModelSubmit
(e: React.FormEvent<HTMLFormElement>)
app/src/pages/settings.tsx:187
Function
handleNotification
(output: any)
app/src/pages/compare.tsx:348
Function
handleNotificationStatus
(status: any)
app/src/pages/compare.tsx:352
Function
handleUndo
(output: any)
app/src/pages/compare.tsx:356
Function
import_config
Import configuration settings. This command imports configuration settings for one or more models from a file. Arguments: --input,
server/app.py:361
Function
keyBindingFn
(event: any)
app/src/pages/compare.tsx:460
Method
keyBindingFn
(event: any)
app/src/pages/playground.tsx:252
Method
listen
(self, topic: str)
server/lib/sseserver.py:28
Function
notificationCallback
({event, data, meta})
app/src/app.tsx:375
Function
notificationCallback
({event, data, meta})
app/src/pages/settings.tsx:334
Function
notifications
Notifies the client when a model has been successfully downloaded
server/lib/api/__init__.py:120
Method
off
(self, event, listener)
server/lib/event_emitter.py:35
Function
page_not_found
(i)
server/app.py:49
Function
provider_model
Route to get model information for a given provider
server/lib/api/provider.py:50
Function
provider_models
Route to get models for a given provider
server/lib/api/provider.py:36
Function
provider_models_search
(provider_name)
server/lib/api/provider.py:95
Function
provider_toggle_model
(provider_name, model_name)
server/lib/api/provider.py:64
Function
provider_update_api_key
Routes to update the API key for a given provider
server/lib/api/provider.py:123
Function
providers
Returns a list of providers
server/lib/api/__init__.py:71
Function
providers_check_api_keys
Checks all the API keys stored in the .env file - matches against the providers in models.json Model must have "api_key" field set to true in
server/lib/api/__init__.py:104
Function
providers_with_models
Returns a list of providers with their models and API keys
server/lib/api/__init__.py:85
Method
publish
(self, topic: str, message: str)
server/lib/sseserver.py:34
Method
publish
Publish data as a server-sent event. :param data: The event data. If it is not a string, it will be serialized to JSON u
server/lib/sse.py:112
Function
regenerateKeyPress
(event: any)
app/src/pages/playground.tsx:472
Function
removeHistoryEntry
(entry)
app/src/app.tsx:546
Method
remove_model
(self, model_name: str)
server/lib/entities.py:83
Method
remove_topic
(self, topic: str)
server/lib/sseserver.py:52
Function
searchModel
(e: React.FormEvent<HTMLFormElement>)
app/src/pages/settings.tsx:56
Function
serve
(path)
server/app.py:42
Function
set_app_context
()
server/lib/api/provider.py:16
Function
set_app_context
()
server/lib/api/__init__.py:23
Function
set_app_context
()
server/lib/api/inference.py:20
Method
sse_server
Return the :class:`SSEServer` instance for this blueprint.
server/lib/sse.py:103
Function
stream_inference
()
server/lib/api/inference.py:24
Function
update
(props: ToasterToast)
app/src/hooks/ui/use-toast.tsx:139
Method
update_model
(self, model_name: str, model: Model)
server/lib/entities.py:71
Function
useCtrlMetaKeyPress
(keys: any, callback: any, node = null)
app/src/lib/ctrl-meta-keypress.tsx:3
Function
verify_provider
()
server/lib/api/provider.py:20
Function
warning_on_one_line
(message, category, filename, lineno, file=None, line=None)
server/app.py:30
← previous
201–281 of 281, ranked by callers