@arizeai/openinference-instrumentation-openai 4.1.6 → 4.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arizeai/openinference-instrumentation-openai",
3
- "version": "4.1.6",
3
+ "version": "4.1.8",
4
4
  "private": false,
5
5
  "description": "OpenInference instrumentation for OpenAI",
6
6
  "keywords": [],
@@ -28,8 +28,8 @@
28
28
  "@opentelemetry/api": "^1.9.0",
29
29
  "@opentelemetry/core": "^2.8.0",
30
30
  "@opentelemetry/instrumentation": "^0.46.0",
31
- "@arizeai/openinference-core": "2.4.1",
32
- "@arizeai/openinference-semantic-conventions": "2.6.0"
31
+ "@arizeai/openinference-core": "2.5.1",
32
+ "@arizeai/openinference-semantic-conventions": "2.7.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@opentelemetry/exporter-trace-otlp-proto": "^0.50.0",
@@ -75,6 +75,7 @@ export const HOST_SUFFIX_TO_PROVIDER: Record<string, LLMProvider> = {
75
75
  "api.perplexity.ai": LLMProvider.PERPLEXITY,
76
76
  "api.together.ai": LLMProvider.TOGETHER,
77
77
  "api.together.xyz": LLMProvider.TOGETHER,
78
+ "ollama.com": LLMProvider.OLLAMA,
78
79
  };
79
80
 
80
81
  /**
@@ -83,7 +84,9 @@ export const HOST_SUFFIX_TO_PROVIDER: Record<string, LLMProvider> = {
83
84
  export function getProviderFromHost(host: string): LLMProvider | undefined {
84
85
  const normalised = host.toLowerCase().trim();
85
86
  for (const [suffix, provider] of Object.entries(HOST_SUFFIX_TO_PROVIDER)) {
86
- if (normalised.endsWith(suffix)) {
87
+ // Anchor at a label boundary so e.g. "smollama.com" does not match the
88
+ // "ollama.com" suffix.
89
+ if (normalised === suffix || normalised.endsWith("." + suffix)) {
87
90
  return provider;
88
91
  }
89
92
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // this is an auto-generated file. see js/scripts/version-update.js
2
- export const VERSION = "4.1.6";
2
+ export const VERSION = "4.1.8";