MCPcopy Create free account

hub / github.com/nat/openplayground / functions

Functions281 in github.com/nat/openplayground

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
Functionadd_cors_header
(response)
server/lib/api/__init__.py:18
Functionall_models
Returns a list of all models
server/lib/api/__init__.py:27
FunctionbeforeUnloadHandler
()
app/src/app.tsx:235
Functionbefore_request
()
server/app.py:54
Functionbulk_completions
(global_state, tasks: List[InferenceRequest])
server/lib/api/inference.py:101
Methodcancel_callback
(self, message)
server/lib/inference/__init__.py:125
Functioncli
()
server/app.py:323
FunctioncompletionCallback
({event, data, meta})
app/src/pages/playground.tsx:367
Functioncompletion_callback
({event})
app/src/pages/compare.tsx:557
MethodcomponentDidCatch
()
app/src/pages/playground.tsx:247
Methodcopy
(self)
server/lib/entities.py:90
FunctioncreateChatCompletionRequest
(prompt, model)
app/src/app.tsx:225
FunctioncreateTextCompletionRequest
({prompt, models})
app/src/app.tsx:216
FunctiondebouncedFunction
(...args)
app/src/app.tsx:139
Methoddefault
(self, obj)
server/lib/entities.py:110
Functionenabled_models
Returns a list of enabled models
server/lib/api/__init__.py:55
Functionenabled_models_names
Returns a list of enabled models
server/lib/api/__init__.py:42
Functionexport_config
Export configuration settings. This command exports the current configuration settings to a file. Arguments: --output, -o: Output f
server/app.py:380
FunctionfocusEditor
()
app/src/pages/compare.tsx:445
Functiongenerate_card
(modelState: any)
app/src/components/parameters-side-panel.tsx:246
Methodgenerator
()
server/lib/sse.py:170
Methodget_announcer
(self)
server/app.py:319
Methodget_enabled_models_by_provider
(self)
server/lib/storage.py:143
Methodget_model
(self, model_name: str)
server/lib/entities.py:66
Methodget_provider_names
(self)
server/lib/storage.py:158
Functiongreedy_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
FunctionhandleAPIKeySubmit
(e: React.FormEvent<HTMLFormElement>)
app/src/pages/settings.tsx:145
FunctionhandleKeyCommand
(command: any, editorState: any)
app/src/pages/compare.tsx:449
MethodhandleKeyCommand
(command: any, editorState: any)
app/src/pages/playground.tsx:265
FunctionhandleModelSubmit
(e: React.FormEvent<HTMLFormElement>)
app/src/pages/settings.tsx:187
FunctionhandleNotification
(output: any)
app/src/pages/compare.tsx:348
FunctionhandleNotificationStatus
(status: any)
app/src/pages/compare.tsx:352
FunctionhandleUndo
(output: any)
app/src/pages/compare.tsx:356
Functionimport_config
Import configuration settings. This command imports configuration settings for one or more models from a file. Arguments: --input,
server/app.py:361
FunctionkeyBindingFn
(event: any)
app/src/pages/compare.tsx:460
MethodkeyBindingFn
(event: any)
app/src/pages/playground.tsx:252
Methodlisten
(self, topic: str)
server/lib/sseserver.py:28
FunctionnotificationCallback
({event, data, meta})
app/src/app.tsx:375
FunctionnotificationCallback
({event, data, meta})
app/src/pages/settings.tsx:334
Functionnotifications
Notifies the client when a model has been successfully downloaded
server/lib/api/__init__.py:120
Methodoff
(self, event, listener)
server/lib/event_emitter.py:35
Functionpage_not_found
(i)
server/app.py:49
Functionprovider_model
Route to get model information for a given provider
server/lib/api/provider.py:50
Functionprovider_models
Route to get models for a given provider
server/lib/api/provider.py:36
Functionprovider_models_search
(provider_name)
server/lib/api/provider.py:95
Functionprovider_toggle_model
(provider_name, model_name)
server/lib/api/provider.py:64
Functionprovider_update_api_key
Routes to update the API key for a given provider
server/lib/api/provider.py:123
Functionproviders
Returns a list of providers
server/lib/api/__init__.py:71
Functionproviders_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
Functionproviders_with_models
Returns a list of providers with their models and API keys
server/lib/api/__init__.py:85
Methodpublish
(self, topic: str, message: str)
server/lib/sseserver.py:34
Methodpublish
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
FunctionregenerateKeyPress
(event: any)
app/src/pages/playground.tsx:472
FunctionremoveHistoryEntry
(entry)
app/src/app.tsx:546
Methodremove_model
(self, model_name: str)
server/lib/entities.py:83
Methodremove_topic
(self, topic: str)
server/lib/sseserver.py:52
FunctionsearchModel
(e: React.FormEvent<HTMLFormElement>)
app/src/pages/settings.tsx:56
Functionserve
(path)
server/app.py:42
Functionset_app_context
()
server/lib/api/provider.py:16
Functionset_app_context
()
server/lib/api/__init__.py:23
Functionset_app_context
()
server/lib/api/inference.py:20
Methodsse_server
Return the :class:`SSEServer` instance for this blueprint.
server/lib/sse.py:103
Functionstream_inference
()
server/lib/api/inference.py:24
Functionupdate
(props: ToasterToast)
app/src/hooks/ui/use-toast.tsx:139
Methodupdate_model
(self, model_name: str, model: Model)
server/lib/entities.py:71
FunctionuseCtrlMetaKeyPress
(keys: any, callback: any, node = null)
app/src/lib/ctrl-meta-keypress.tsx:3
Functionverify_provider
()
server/lib/api/provider.py:20
Functionwarning_on_one_line
(message, category, filename, lineno, file=None, line=None)
server/app.py:30
← previous201–281 of 281, ranked by callers