Compare commits
3 Commits
sidecar-v1
...
sidecar-v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9fcc9a5bd | ||
|
|
ca5dc98d24 | ||
|
|
da49c04119 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "voice-to-notes",
|
"name": "voice-to-notes",
|
||||||
"version": "0.2.27",
|
"version": "0.2.28",
|
||||||
"description": "Desktop app for transcribing audio/video with speaker identification",
|
"description": "Desktop app for transcribing audio/video with speaker identification",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "voice-to-notes"
|
name = "voice-to-notes"
|
||||||
version = "1.0.10"
|
version = "1.0.11"
|
||||||
description = "Python sidecar for Voice to Notes — transcription, diarization, and AI services"
|
description = "Python sidecar for Voice to Notes — transcription, diarization, and AI services"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
@@ -254,15 +254,15 @@ def make_ai_chat_handler() -> HandlerFunc:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if action == "configure":
|
if action == "configure":
|
||||||
# Re-create a provider with custom settings
|
# Re-create a provider with custom settings and set it active
|
||||||
provider_name = payload.get("provider", "")
|
provider_name = payload.get("provider", "")
|
||||||
config = payload.get("config", {})
|
config = payload.get("config", {})
|
||||||
if provider_name == "local":
|
if provider_name == "local":
|
||||||
from voice_to_notes.providers.local_provider import LocalProvider
|
from voice_to_notes.providers.local_provider import LocalProvider
|
||||||
|
|
||||||
service.register_provider("local", LocalProvider(
|
service.register_provider("local", LocalProvider(
|
||||||
base_url=config.get("base_url", "http://localhost:8080"),
|
base_url=config.get("base_url", "http://localhost:11434/v1"),
|
||||||
model=config.get("model", "local"),
|
model=config.get("model", "llama3.2"),
|
||||||
))
|
))
|
||||||
elif provider_name == "openai":
|
elif provider_name == "openai":
|
||||||
from voice_to_notes.providers.openai_provider import OpenAIProvider
|
from voice_to_notes.providers.openai_provider import OpenAIProvider
|
||||||
@@ -286,6 +286,10 @@ def make_ai_chat_handler() -> HandlerFunc:
|
|||||||
api_key=config.get("api_key"),
|
api_key=config.get("api_key"),
|
||||||
api_base=config.get("api_base"),
|
api_base=config.get("api_base"),
|
||||||
))
|
))
|
||||||
|
# Set the configured provider as active
|
||||||
|
print(f"[sidecar] Configured AI provider: {provider_name} with config: {config}", file=sys.stderr, flush=True)
|
||||||
|
if provider_name in ("local", "openai", "anthropic", "litellm"):
|
||||||
|
service.set_active(provider_name)
|
||||||
return IPCMessage(
|
return IPCMessage(
|
||||||
id=msg.id,
|
id=msg.id,
|
||||||
type="ai.configured",
|
type="ai.configured",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "voice-to-notes"
|
name = "voice-to-notes"
|
||||||
version = "0.2.27"
|
version = "0.2.28"
|
||||||
description = "Voice to Notes — desktop transcription with speaker identification"
|
description = "Voice to Notes — desktop transcription with speaker identification"
|
||||||
authors = ["Voice to Notes Contributors"]
|
authors = ["Voice to Notes Contributors"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "Voice to Notes",
|
"productName": "Voice to Notes",
|
||||||
"version": "0.2.27",
|
"version": "0.2.28",
|
||||||
"identifier": "com.voicetonotes.app",
|
"identifier": "com.voicetonotes.app",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "npm run dev",
|
"beforeDevCommand": "npm run dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user